Bug #2236
closed
metacat parser allows eml with missing content
Added by Margaret O'Brien about 19 years ago.
Updated about 13 years ago.
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.
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.
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.
Original Bugzilla ID was 2236
Also available in: Atom
PDF