Project

General

Profile

Bug #2236

metacat parser allows eml with missing content

Added by Margaret O'Brien about 14 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
metacat
Target version:
Start date:
10/27/2005
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2236

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.

History

#1 Updated by Saurabh Garg about 14 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.

#2 Updated by ben leinfelder about 8 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.

#3 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 2236

Also available in: Atom PDF