409 (Conflict) The object can not be created from the provided hashmap, or there are conflicting permissions (a list of missing hashes, or a conflicting sharing path will be included in the reply - in JSON format)
411 (Length Required) Missing ``Content-Length`` or ``Content-Type`` in the request
422 (Unprocessable Entity) The MD5 checksum of the data written to the storage system does not match the (optionally) supplied ETag value
-409 (Conflict) Conflict with the current state of the resource
=========================== ==============================
try:
meta = backend.get_container_meta(request.user, v_account, x[0], until)
policy = backend.get_container_policy(request.user, v_account, x[0])
- for k, v in policy.iteritems():
- meta['X-Container-Policy-' + k] = v
- container_meta.append(printable_header_dict(meta))
except NotAllowedError:
raise Unauthorized('Access denied')
except NameError:
pass
+ else:
+ for k, v in policy.iteritems():
+ meta['X-Container-Policy-' + k] = v
+ container_meta.append(printable_header_dict(meta))
if request.serialization == 'xml':
data = render_to_string('containers.xml', {'account': v_account, 'containers': container_meta})
elif request.serialization == 'json':
raise Unauthorized('Access denied')
except NameError:
pass
- update_sharing_meta(permissions, v_account, v_container, x[0], meta)
- update_public_meta(public, meta)
- object_meta.append(printable_header_dict(meta))
+ else:
+ update_sharing_meta(permissions, v_account, v_container, x[0], meta)
+ update_public_meta(public, meta)
+ object_meta.append(printable_header_dict(meta))
if request.serialization == 'xml':
data = render_to_string('objects.xml', {'container': v_container, 'objects': object_meta})
elif request.serialization == 'json':