introducing a validation error in document causes save to fail silently
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!
cvc-datatype-valid.1.2.2: '4/2/2008' is not a valid value of list type 'yearDate'.
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.
#2 Updated by ben leinfelder almost 11 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.