Task #2360
Story #2086: CN issues found when creating tests for Python D1 CNClient
CNCore.reserveIdentifier() - Allows the same identifier to be reserved multiple times
100%
Description
CNCore.reserveIdentifier() returns successfully when called multiple times with the same identifier. It should return IdentifierNotUnique on the second and later calls for the same PID.
Exceptions.IdentifierNotUnique – (errorCode=409, detailCode=4210)
The requested identifier can not be reserved because it already exists in the DataONE system or has already been reserved.
History
#1 Updated by Roger Dahl almost 13 years ago
Strictly speaking, reserving the same identifier multiple times might be ok if it's done by the same subject. But in that case, it seems most likely that the user is confused about something and I think it would be best to let the user know that something is not correct by denying the subsequent reservations.
#2 Updated by Ben Leinfelder over 12 years ago
- Status changed from New to Closed
It did allow the same user to reserve the same identifier over and over again. I agree that this is confusing and I can't think of any reason to keep it like that. Now throwing an exception.