Project

General

Profile

Actions

Bug #3347

closed

invalid date string causes metacat upload error

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

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

0%

Estimated time:
Bugzilla-Id:
3347

Description

I created an EdML package in morpho, and saved it locally. On trying to 'File|Synchronize...' it with Metacat, I got an error dialog saying there was an ID conflict:

I never connected with this metacat, so the ID conflict is unlikely. Looking at the log, I saw a validation error on insert:

MetacatUpload Exception in EdMLDataPackage!

<error>
cvc-datatype-valid.1.2.2: '4/2/2008' is not a valid value of list type 'yearDate'.
</error>

It appears the date string wasn't ISO 8601 compliant, causing validation errors. By modifying the data string (to '2008-04-02') and then saving the package, it successfully saved both locally and to metacat.

So, I think the ID conflict dialog box was a red herring. It seems that we are catching errors too broadly from metacat. Only true ID conflicts should bring up that error.

Actions

Also available in: Atom PDF