Bug #8010
CN.archive fails with 401 Unauthorized when using either MN or CN client certificate for PID with authoritative MN as urn:node:LTER
0%
Description
CN.archive fails with 401 Unauthorized when using either MN or CN client certificate for PID with authoritative MN as urn:node:LTER -
MN attempt:
curl -i -E ./urn_node_LTER-1.pem -X PUT https://cn.dataone.org/cn/v2/archive/doi:10.6073/AA/knb-lter-bes.437.35
HTTP/1.1 401 Unauthorized
Date: Wed, 01 Feb 2017 19:23:20 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Type: text/xml
Content-Length: 291
Access-Control-Allow-Origin:
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, Location, Content-Length, x-annotator-auth-token
Access-Control-Expose-Headers: Content-Length, Content-Type, Location
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE
<?xml version="1.0" encoding="UTF-8"?>
The Coordinating Node is not authorized to make systemMetadata changes on this object. Please make changes directly on the authoritative Member Node.
CN attempt:
curl -i -E ./urn_node_CNUCSB1.pem -X PUT https://cn.dataone.org/cn/v2/archive/doi:10.6073/AA/knb-lter-bes.437.35
HTTP/1.1 401 Unauthorized
Date: Wed, 01 Feb 2017 19:29:29 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Type: text/xml
Content-Length: 291
Access-Control-Allow-Origin:
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, Location, Content-Length, x-annotator-auth-token
Access-Control-Expose-Headers: Content-Length, Content-Type, Location
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE
<?xml version="1.0" encoding="UTF-8"?>
The Coordinating Node is not authorized to make systemMetadata changes on this object. Please make changes directly on the authoritative Member Node.
Object System Metadata:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
doi:10.6073/AA/knb-lter-bes.437.35
eml://ecoinformatics.org/eml-2.0.1
10881
ecfee77e0d5297ddb74a796fb4c36f02
uid=BES,o=LTER,dc=ecoinformatics,dc=org
uid=BES,o=LTER,dc=ecoinformatics,dc=org
uid="BES",o=lter,dc=ecoinformatics,dc=org
read
write
changePermission
public
read
doi:10.6073/AA/knb-lter-bes.437.34
doi:10.6073/AA/knb-lter-bes.437.36
false
2010-01-08T00:00:00.000+00:00
2015-08-14T21:03:34.343+00:00
urn:node:LTER
urn:node:LTER
urn:node:CN
completed
2015-08-14T21:03:31.858+00:00
urn:node:LTER
completed
2015-12-25T09:37:20.314+00:00
/ns3:systemMetadata
History
#1 Updated by Jing Tao almost 8 years ago
Hi Mark. The error messages say:
The Coordinating Node is not authorized to make systemMetadata changes on this object. Please make changes directly on the authoritative Member Node.
This means the authoritative node of this object is a v2 node and the member node has the authority on system metadata ( the archive method is considered to change the system metadata). So you can NOT call the archive method by the CN url. You have to call the archive method by a mn rest command.
Does the authoritative node still exist?
#2 Updated by Mark Servilla over 7 years ago
- Target version set to CCI-2.4.0