Access rules doesn't assign to data file which associated with a eml 2 document
When morpho upload a eml2 document and data files associate with it to metacat,
the access rule doesn't be applied to data file.
Here is solution:
When we parsing eml document, if data file which specified in distribution
doesn't existed in xml_documents, we consider the data file is reserved for the
eml document and access rule will be applied to it.
If the data file already in xml_documents, we will check if the onwer of eml
document have all permsission to the data file. If the owner has, access rules
will be applied to data file. If owner hasn't, the access rules will be ignored.
#1 Updated by Jing Tao over 15 years ago
This bug was fixed. In Eml200SAXHandler class, the data file with "ecogrid://"
will be picked up. If the data file id doesn't exist in metacat, the access rule
in the eml2 document will be applied to the data file id.
If the data file id does exist, if the owner of eml2 document have "all"
permission, then access rules will be applied. Otherwise, access rules will be
Those rules are implemented in Eml200SAXHandler class.