Bug #1851
CN resolve() throws incorrect exception when object not found
Status:
Closed
Priority:
High
Assignee:
Robert Waltz
Category:
d1_cn_service
Target version:
Start date:
Due date:
% Done:
100%
Milestone:
CCI-0.6.4
Product Version:
*
Story Points:
Sprint:
History
#1 Updated by Matthew Jones about 13 years ago
- Category set to d1_cn_service
- Target version set to Sprint-2011.41-Block.5
The CN resolve() service used to throw a NotFound exception when asked to resolve a pid that doesn't exist. Now it instead throws a ServiceFailure (which is wrong, as the service didn't fail, it just didn't find the pid), and so our Java client code looking for the NotFound exception no longer works. Please change it back so that the proper NotFound exception is thrown.
To replicate the bug resolve any ID that does not exist. For example, currently if you visit:
https://cn-dev.dataone.org/cn/v1/resolve/charlie2314
resolve() gives back:
<?xml version="1.0" encoding="UTF-8"?>
Unrecognized getSystemMetadata failure: No record found for charlie2314
#2 Updated by Robert Waltz about 13 years ago
- Status changed from New to In Progress
- Assignee set to Robert Waltz
- Priority changed from Normal to High
#3 Updated by Robert Waltz about 13 years ago
- Status changed from In Progress to Closed