Project

General

Profile

Actions

Bug #2236

closed

metacat parser allows eml with missing content

Added by Margaret O'Brien over 18 years ago. Updated over 12 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.

Actions #1

Updated by Saurabh Garg over 18 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.

Actions #2

Updated by ben leinfelder over 12 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.

Actions #3

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 2236

Actions

Also available in: Atom PDF