Bug #11037
closedRGW Swift API: removing X-Account-Meta-Temp-URL-Key{-2} is not possible with the X-Remove-Account-{} syntax
0%
Description
RGW currently supports setting/removing the TempURL. Unfortunately, the additional X-Remove-Account-{} syntax is not supported yet. Please refer to: https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rest_swift.cc#L709.
$ curl -i http://localhost:8080/swift/v1 -X POST -H "X-Auth-Token: $token" -H "X-Account-Meta-Temp-URL-Key: x"
HTTP/1.1 204 No Content
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 05 Mar 2015 21:02:08 GMT
Content-Type: text/plain; charset=utf-8
Connection: keep-alive
$ curl -i http://localhost:8080/swift/v1 -X POST -H "X-Auth-Token: $token" -H "X-Remove-Account-Meta-Temp-URL-Key: x"
HTTP/1.1 405 Method Not Allowed
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 05 Mar 2015 21:02:19 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 16
Connection: keep-alive
Accept-Ranges: bytes