Bug #2236
closedmetacat parser allows eml with missing content
0%
Description
Incomplete packages are allowed by the EML parser in metacat and at knb
(http://knb.ecoinformatics.org/emlparser/index.html)
packages missing these nodes are allowed:
methods/methodStep/description/
methods/methodStep/protocol/creator/individualName/surName
An example in metacat is knb-lter-sbc.13.3. Morpho1.6rc1 chokes on these files,
so I checked the schema, and found that morpho was right. The example file was
most likely created with morpho1.4. Personally, I'd prefer you didnt fix this,
since it will make some of our existing packages invalid.
Updated by Saurabh Garg about 19 years ago
Here is the link to the document that Margaret is talking about:
http://metacat.nceas.ucsb.edu/knb/metacat?action=read&qformat=xml&docid=knb-
lter-sbc.13.3
There IS a difference in behaviour of eml parser of metacat and morpho.
Metacat's eml parser checks if the given eml document is valid.
But the Morpho eml parser checks if the given eml document is valid AND if it
has any empty required tags. The second requirement is imposed by Morpho to
avoid users from not entering required info.
This is what I have noticed. Though I might be wrong in my observation. Can
other developers confirm this please.
Updated by ben leinfelder about 13 years ago
I tried inserting this document as is: it was fine because it validates against the 2.0.1 schema.
I tries modifying it by commenting out these nodes (all failed):
methods/methodStep/description/
methods/methodStep/description/section
So it appears that Metacat is enforcing the schema check.