Project

General

Profile

Task #2359

Story #2045: Get the DataONE CLI ready for public release

"set algorithm" with an invalid algorithm designator crashes the CLI

Added by Roger Dahl almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrew Pippin
Category:
d1_client_cli
Start date:
2012-02-22
Due date:
% Done:

100%

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

Description

set algorithm qwer

Traceback (most recent call last):

File "./dataone.py", line 1034, in

main()

File "./dataone.py", line 1030, in main

cli.cmdloop()

File "/usr/lib/python2.6/cmd.py", line 143, in cmdloop

stop = self.postcmd(stop, line)

File "./dataone.py", line 970, in postcmd

self.d1._set_invalid_checksum_to_default()

File "./dataone.py", line 200, in _set_invalid_checksum_to_default

d1_common.util.get_checksum_calculator_by_dataone_designator(algorithm)

File "/home/dahl/eclipse_d1/d1_common_python/src/d1_common/util.py", line 46, in get_checksum_calculator_by_dataone_designator

return dataone_to_python_checksum_algorithm_mapdataone_algorithm_name

KeyError: 'qwer'

History

#1 Updated by Andrew Pippin over 12 years ago

  • Assignee changed from Roger Dahl to Andrew Pippin

Roger, I'll close this one up.

#2 Updated by Andrew Pippin over 12 years ago

Closed (SVN 7383).

#3 Updated by Andrew Pippin over 12 years ago

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)