Bug #5262
openEML document owner can't read the document
0%
Description
An eml document was inserted into metacat.
There is no access rule in the document, so only the owner can read the document.
However, it seems the document can't read the document.
Here is the record in xml_documents. it shows kepler user is the owner:
test=# select * from xml_documents where docid ='doc.1292983505983';
docid | rootnodeid | docname | doctype | user_owner | user_updated | server_location | rev | date_created | date_updated | public_access | catalog_id
-------------------+------------+---------+------------------------------------+-----------------------------------------------------+-----------------------------------------------------+-----------------+-----+--------------+--------------+---------------+------------
doc.1292983505983 | 2498 | eml | eml://ecoinformatics.org/eml-2.1.0 | uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org | uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org | 1 | 1 | 2010-12-21 | 2010-12-21 | 0 | 16
However, when I tried to read the document as kepler and metacat give me the error:
User uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org does not have permission to read the document with the docid doc.1292983505983.1
My metacat version is 1.9.3
I tried this in dev.nceas.ucsb metacat and got the same result.