Project

General

Profile

Task #7583

MNPackage.getPackage requires resource map id to download entire package

Added by Peter Slaughter over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2016-01-11
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

The documentation for this service, located at https://jenkins-ucsb-1.dataone.org/job/API%20Documentation%20-%20trunk/ws/api-documentation/build/html//apis/MN_APIs.html#MNPackage.getPackage indicates that
the pid for any object belonging to the package can be specified, and the entire package will be downloaed. The attached script gives an example of when this is not the case. Specifying a science object
results in a Bagit file with just the science object; specifiying the metadata object results in a Bagit file with just the metadata object. However, when the resource map id is specified, the
entire package is downloaded.

testGetPackage.sh Magnifier (378 Bytes) Peter Slaughter, 2016-01-11 23:02

History

#1 Updated by Jing Tao over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30

I talked with Peter about this issue. He agrees that we can change the documentation stating that the pid should be a resource map object. If it is not resource map object, an InvalidRequest exception will be thrown.

#2 Updated by Jing Tao over 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100
  • translation missing: en.field_remaining_hours set to 0.0

I did the change on the code and also modified the documenation

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)