Project

General

Profile

Task #719

Story #957: CN Service layer should be refactored for 0.6 release

Add Better DataONE exceptions into Cn Rest Service Proxy

Added by Dave Vieglais over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Robert Waltz
Category:
d1_cn_service
Target version:
Start date:
Due date:
% Done:

100%

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

Description

Expecting http://cn-dev.dataone.org/cn/object/ to return an object or an appropriate exception if not found.

e.g.: http://cn-dev.dataone.org/cn/object/knb:testid:201020017138261

Instead the generic 404 is returned.

Similarly with /cn/object, /cn/meta/

Incorrect URL paths or REST services not functional?

Service endpoints that do not exhibit any defined action should provide the caller with hints about the service URLs that are available on the node. This applies for both CNs and MNs and is useful for guiding outside users towards appropriate use of the system. The response should be an exception of type InvalidRequest. The description of the error message should include references to supported collectiosn on the system (even if authentication is required to access those collections). For example, the description in the error response of GET /cn could be:

No action is available for the specified URL. Available actions include:

objectList objects available on this node
object/IDRetrieve the specified object
meta/IDRetrieve system metadata for the specified object
checksum/IDRetrieve the checksum for the specified object
logAccess the use logs
resolve/IDReturn a list of locations from which the specified object can be retieved

History

#1 Updated by Robert Waltz about 14 years ago

  • Parent task set to #957
  • Milestone set to CCI-0.6

#2 Updated by Robert Waltz about 14 years ago

  • Milestone changed from CCI-0.6 to CCI-0.5

#3 Updated by Robert Waltz over 13 years ago

  • Status changed from New to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)