Project

General

Profile

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

Added by Roger Dahl about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
Environment.Development
Start date:
2012-02-22
Due date:
% Done:

100%

Milestone:
CCI-1.0.0
Product Version:
*
Story Points:
Sprint:

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 about 12 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 about 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.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)