Project

General

Profile

Actions

Bug #5843

closed

swift api: x-container-meta-{key} should not be allowed on an object

Added by Alexandre Marangone over 10 years ago. Updated about 10 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Support
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Using 'x-container-meta-{key}' to update object custom metadata should be disallowed, since it's supposed to be used to update container metadata.

$ curl -i -XPOST -H "X-Auth-Token: <token>" -H "X-Container-Meta-Container: Should Fail, but works" -H "X-Object-Meta-Object: Works" https:/server/swift/v1/test-object-custom-metadata/object-custom-metadata
HTTP/1.1 202 Accepted
Date: Thu, 01 Aug 2013 23:42:10 GMT
Server: Apache
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8

$ curl -i -XHEAD -H "X-Auth-Token: <token>" https://server/swift/v1/test-object-custom-metadata/object-custom-metadata
HTTP/1.1 200 OK
Date: Thu, 01 Aug 2013 23:42:23 GMT
Server: Apache
Accept-Ranges: bytes
Last-Modified: Thu, 01 Aug 2013 23:42:10 GMT
etag: 09108ba8f5ef7d88c9db99cd3ff2752b
X-Object-Meta-container: Should Fail, but works
X-Object-Meta-object: Works
Content-Length: 16
Content-Type: binary/octet-stream

Actions #1

Updated by Sage Weil over 10 years ago

  • Status changed from New to 4

is this causing actual problems? it may be easier to leave it how it is.

Actions #2

Updated by Alexandre Marangone over 10 years ago

It came from a customer, after discussions it is not causing any issue at all. We can leave it how it is.

Actions #3

Updated by Yehuda Sadeh about 10 years ago

  • Status changed from 4 to Won't Fix
Actions

Also available in: Atom PDF