Project

General

Profile

Actions

Bug #3348

closed

introducing a validation error in document causes save to fail silently

Added by Matt Jones over 16 years ago. Updated about 15 years ago.

Status:
Resolved
Priority:
Immediate
Category:
client
Target version:
Start date:
05/30/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3348

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.

Actions #1

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).

Actions #2

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.

Actions #3

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...

Actions #4

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)

Actions #5

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 3348

Actions

Also available in: Atom PDF