Task #2327
Story #1906: Review, revise, and update architecture documentation
CNAuthorization.setRightsHolder() - Returns empty ObjectList
0%
Description
I tested CNAuthorization.setRightsHolder() by calling it on an existing PID with an unknown owner. Expected result was a NotAuthorized exception. Instead, received an empty ObjectList (which should not be returned from setRightsHolder() even on success. I didn't test setRightsHolder() with other parameters.
DEBUG operation: GET /cn/v1/object?count=1&start=0
12/02/12 23:37:37 DEBUG headers: {'Charset': 'utf-8', 'Accept': 'text/xml', 'User-Agent': 'pyd1/1.0.0 +http://dataone.org/'}
ServiceFailure: name: ServiceFailure
errorCode: 500
detailCode: 0
description: Node responded with a valid status code but failed to include the expected Content-Type
Status code: 200
Content-Type: text/xml;charset=UTF-8
traceInformation: <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="/cn/xslt/dataone.types.v1.xsl"?>
History
#1 Updated by Roger Dahl almost 13 years ago
- Status changed from New to Rejected
This bug was caused by there not being any objects on the CN.
#2 Updated by Dave Vieglais about 10 years ago
- Target version set to Maintenance Backlog