Project

General

Profile

Bug #5312

d1_client_cli fails get if mn-url not set

Added by Matthew Jones about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
2014-09-25
Due date:
2015-01-13
% Done:

100%

Story Points:
Sprint:

Description

The current trunk (r13748) of the dataone client command produces a cryptic error with stacktrace is emitted if an attempt is made to download an object. If one first sets the mn-url to an MN that holds the object, the command succeeds. So, the problem is that the client doesn't know how to lookup an object location using resolve(). In general, the mn-url that is set is likely to not contain any given object that may be of interest to a user, so the get() call should really either:
1) do a resolve first in all cases, and then run the get for one of the MNs that is returned, or
2) if the mn-url is set, try it, and on failure, do a resolve then a get()

In either case, a stack trace should not be returned -- instead, the program should swallow the trace and provide an informative message to the user, such as:

"The object pricope.10.1 was not found on the DataONE network."
"The mn-url must be set before calling the 'get' command."

To close this, I suggest that the client be modified to:

1) Use resolve(), first, then get() on a proper MN, and
2) Return human-readable error messages if something goes awry

"

History

#1 Updated by Dave Vieglais over 9 years ago

  • Start date set to 2014-09-25
  • Due date set to 2014-09-25
  • Target version set to Release Backlog

#2 Updated by Dave Vieglais over 9 years ago

  • Due date changed from 2014-09-25 to 2015-01-13
  • Category deleted (d1_client_cli)
  • Assignee changed from Roger Dahl to Mark Flynn
  • Project changed from Infrastructure to Python CLI

#3 Updated by Dave Vieglais over 9 years ago

  • Target version deleted (Release Backlog)

#4 Updated by Roger Dahl about 8 years ago

  • Assignee changed from Mark Flynn to Roger Dahl

#5 Updated by Dave Vieglais over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)