Project

General

Profile

Actions

Bug #1554

closed

Access rules doesn't assign to data file which associated with a eml 2 document

Added by Jing Tao over 20 years ago. Updated over 20 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
metacat
Target version:
Start date:
05/05/2004
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1554

Description

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.

Actions #1

Updated by Jing Tao over 20 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
ignaored.

Those rules are implemented in Eml200SAXHandler class.

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 1554

Actions

Also available in: Atom PDF