Bug #11147
closedRGW Swift API: there is no possibility to upload custom metadata during container creation
0%
Description
1. RGW via the civetweb frontend:
$ curl -i http://localhost:8000/swift/v1/cont/ -X PUT -H "X-Auth-Token: $token" -H "X-Container-Meta-TestX: x"
HTTP/1.1 201 Created
Content-type: text/plain; charset=utf-8
Content-Length: 0
Date: Wed, 18 Mar 2015 14:50:17 GMT
$ curl -i http://localhost:8000/swift/v1/cont/ -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 204 No Content
X-Timestamp: 1426690217.00000
X-Container-Object-Count: 0
X-Container-Bytes-Used: 0
X-Container-Bytes-Used-Actual: 0
X-Storage-Policy: default-placement
Content-type: text/plain; charset=utf-8
Content-Length: 0
Date: Wed, 18 Mar 2015 14:50:20 GMT
2. Swift
$ curl -i http://localhost:9090/v1/AUTH_test/cont/ -X PUT -H "X-Auth-Token: $token" -H "X-Container-Meta-TestX: x"
HTTP/1.1 201 Created
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx3f114ff98aad4a528208b-0055099157
Date: Wed, 18 Mar 2015 14:53:11 GMT
$ curl -i http://localhost:9090/v1/AUTH_test/cont/ -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 204 No Content
Content-Length: 0
X-Container-Object-Count: 0
Accept-Ranges: bytes
X-Timestamp: 1424789735.12920
X-Container-Meta-Testx: x
X-Container-Bytes-Used: 0
Content-Type: text/plain; charset=utf-8
X-Trans-Id: tx59ea2cf32ffb41f1b6faf-0055099162
Date: Wed, 18 Mar 2015 14:53:22 GMT