Bug #3348
closedintroducing a validation error in document causes save to fail silently
0%
Description
I saved a valid EdML document locally and to metacat. I then went in and changed the document so that one of the date strings was ISO invalid (e.g., '4/2/2008'). I then selected 'Save...' from the menu, and selected both local and network. Morpho tries to save the document, fails due to validation errors, but fails silently with no error message to the user. The document is neither saved locally nor to metacat. The error message in the log reflects the validation problem:
MetacatUpload Exception in EdMLDataPackage!
<error>
cvc-datatype-valid.1.2.2: '4/2/2008' is not a valid value of list type 'yearDate'.
</error>
I can then go back to 'Save...' and save locally without a problem, producing a new version locally.
If I then take that new version and perform a 'File|Synchronize...' on it, then I get the inappropriate ID conflict error that is described in bug #3447.
Updated by ben leinfelder over 16 years ago
local schema validation has been disabled on the edml documents - if that was turned on, you'd likely not get as far as you do. (i was aware that there was no local schema validation happening).
Updated by ben leinfelder over 16 years ago
added local validation when:
-tree editor is used to edit content (not a frequent event)
-package is saved to local cache (very frequent).
a warning is displayed if the instance doc is invalid WRT the schema, but the save is allowed locally.
NOTE: this does not address error messages or behavior when saving to the Metacat server.
Updated by ben leinfelder about 16 years ago
will have to test this again now that many many changes have been made to the Save features for regular Morpho...
Updated by ben leinfelder about 15 years ago
we are now validating both EdML and QTI documents during the local save (and Metacat will also validate them on upload)