NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

Save for later may add duplicate 'codeDefinition' elements without defining the code #991

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: ben leinfelder (ben leinfelder) Original Redmine Issue: 5839, https://projects.ecoinformatics.org/ecoinfo/issues/5839 Original Date: 2013-01-30 Original Assignee: Jing Tao


Shirley Han got this error message for a package she was editing. Problem with saving to metacat in EML200DataPackage! <?xml version="1.0"?>cvc-complex-type.2.4.b: The content of element 'codeDefinition' is not complete. One of '{definition}' is expected.

It had some wide dataTables and she had used the "save for later" option during the attribute documentation process.

I looked at the EML file and saw that many codeDefinition elements had been added but did not contain the element, only the was present.

I am not sure how this was introduced or if it was even because of the "save for later" feature.

example snippet from EML:

No Yes No Yes No No, the course is not required Yes Yes, the course is required
mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2013-01-31T19:32:44Z


I tried to save an incomplete eml document with the code definition. Then I opened it and continued to work on it. I could save it successfully into the network - so there is no duplicate "codeDefinition" without defining the code.

So I can't reproduce the bug. Ben, do you have more information.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-01-31T22:37:51Z


Unfortunately there's nothing more to go on. We'll just keep an eye out for it again.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:31:50Z


Original Bugzilla ID was 5839