Bug #11431
RGW Swift API: XML document generated in response for GET on account does not contain account name
0%
Description
1. RGW via civetweb:
$ curl -i http://localhost:8000/swift/v1/?format=xml -X GET -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
X-Timestamp: 1429529128.13742
X-Account-Container-Count: 1
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
Content-Length: 129
Accept-Ranges: bytes
Content-type: application/xml; charset=utf-8
Date: Mon, 20 Apr 2015 11:25:28 GMT<account><container><name>cont</name><count>0</count><bytes>0</bytes></container></account>
2. Swift:
$ curl -i http://localhost:9090/v1/AUTH_test/?format=xml -X GET -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
Content-Length: 149
Accept-Ranges: bytes
X-Timestamp: 1424789666.47604
X-Account-Bytes-Used: 0
X-Account-Container-Count: 1
Content-Type: application/xml; charset=utf-8
X-Account-Object-Count: 0
X-Trans-Id: tx91c8b5b791ba4c9c976cd-005534e3c5
Date: Mon, 20 Apr 2015 11:32:21 GMT
<account name="AUTH_test">
<container><name>cont</name><count>0</count><bytes>0</bytes></container>
</account>
Related issues
Associated revisions
rgw: fix lack of account name in XML listing of Swift account.
Fixes: #11431
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
rgw: fix lack of account name in XML listing of Swift account.
Fixes: #11431
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 837388bbc39a1bf9019302c3a4d3a3fe22caeeb4)
History
#1 Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from New to In Progress
- Assignee set to Radoslaw Zarzynski
I'm working on it.
#2 Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from In Progress to Fix Under Review
Pull request: https://github.com/ceph/ceph/pull/4404.
#3 Updated by Nathan Cutler about 8 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to hammer
- Regression set to No
#4 Updated by Nathan Cutler about 8 years ago
- Status changed from Pending Backport to Resolved