Bug #3084

'arv keep put zerobytefile' gives an error

Added by Abram Connelly almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
06/23/2014
Due date:
% Done:

0%

Estimated time:
Story points:
0.5

Description

An error message occurs When trying to upload a 0 byte file to the keep server with 'arv keep put'.

For example:

$ touch zerobytefile
$ arv keep put zerobytefile
Traceback (most recent call last):
File "/usr/local/bin/arv-put", line 4, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/arvados/commands/put.py", line 394, in main
'manifest_text': writer.manifest_text(),
File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/apiclient/http.py", line 723, in execute
raise HttpError(resp, content, uri=self.uri)
apiclient.errors.HttpError: <HttpError 422 when requesting https://qr1hi.arvadosapi.com/arvados/v1/collections?alt=json returned "Unprocessable Entity">

Associated revisions

Revision 498c9aa9 (diff)
Added by Peter Amstutz almost 5 years ago

Handle zero-length streams that contain zero-length files. refs #3084

Revision 826a8937 (diff)
Added by Peter Amstutz almost 5 years ago

Fix tests broken by adding zero-length block manifests containing a zero length
file. refs #3084

History

#1 Updated by Tom Clegg almost 5 years ago

arv-put is trying to create a manifest like

. 0:0:emptyfile

It should be creating one like

. d41d8cd98f00b204e9800998ecf8427e+0 0:0:zerobytefile

In sdk/python/arvados/collection.py it looks like CollectionWriter does this correctly but then it gets broken somewhere in normalize / normalize_stream / locators_and_ranges.

#2 Updated by Tom Clegg almost 5 years ago

  • Story points set to 0.5

#3 Updated by Peter Amstutz almost 5 years ago

  • Target version set to 2014-07-16 Sprint

#4 Updated by Peter Amstutz almost 5 years ago

  • Status changed from New to Resolved
  • Assigned To set to Peter Amstutz

Also available in: Atom PDF