Project

General

Profile

Bug #11431

RGW Swift API: XML document generated in response for GET on account does not contain account name

Added by Radoslaw Zarzynski over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

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

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

Copied to rgw - Backport #12323: RGW Swift API: XML document generated in response for GET on account does not contain account name Resolved 04/20/2015

Associated revisions

Revision 837388bb (diff)
Added by Radoslaw Zarzynski over 8 years ago

rgw: fix lack of account name in XML listing of Swift account.

Fixes: #11431
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>

Revision b1618a97 (diff)
Added by Radoslaw Zarzynski about 8 years ago

rgw: fix lack of account name in XML listing of Swift account.

Fixes: #11431
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(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

#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

Also available in: Atom PDF