Bug #5186

Failing upload of a non existent object with If-None-Match

Added by Sofia Papagiannaki about 5 years ago. Updated about 5 years ago.

Status:Resolved Start date:03/05/2014
Priority:High Due date:
Assignee:Sofia Papagiannaki % Done:

0%

Category:Pithos Spent time: -
Target version:0.16

Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/snf_django/lib/api/__init__.py", line 126, in wrapper
    response = func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pithos/api/util.py", line 1111, in wrapper
    response = func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pithos/api/functions.py", line 1015, in object_write
    validate_matching_preconditions(request, meta)
  File "/usr/lib/python2.7/dist-packages/pithos/api/util.py", line 445, in validate_matching_preconditions
    etag = meta['hash'] if not UPDATE_MD5 else meta['checksum']
KeyError: 'hash'

Associated revisions

Revision bfa0341f
Added by Sofia Papagiannaki about 5 years ago

pithos: Fix failing upload with matching preconditions

Refs: #5186

History

#1 Updated by Sofia Papagiannaki about 5 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF