Project

General

Profile

Bug #10684

RGW swift API: Response returned by GET request on account does not contain few headers.

Added by Ahmad Faheem almost 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/29/2015
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Response header does not contain following headers:

x-account-bytes-used
x-account-container-count
x-account-object-count
x-timestamp
content-length
x-trans-id

Steps to reproduce:

1. curl -i "https://10.20.20.15:80/swift/v1" -X GET -H "x-auth-token: 19aacea65f034c4eb1b17b79875313b3"

HTTP/1.1 200 OK
Date: Thu, 29 Jan 2015 08:35:55 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: Accept-Encoding
Content-Type: application/octet-stream
Connection: close
Transfer-Encoding: chunked

Response returned by swift for GET request on account:

curl -i http://10.0.2.15:8080/v1/AUTH_b2419ea9588d49ddbd8c006b5eb199ff -X GET -H "X-Auth-Token: 016649e57fdf4c26998d5a68f5ef214d"

HTTP/1.1 204 No Content
Content-Length: 0
X-Account-Object-Count: 4
X-Account-Storage-Policy-Policy-0-Bytes-Used: 1048582
X-Account-Storage-Policy-Policy-0-Container-Count: 5
X-Timestamp: 1419480678.41198
X-Account-Storage-Policy-Policy-0-Object-Count: 4
X-Account-Meta-Temp-Url-Key: secret
X-Account-Bytes-Used: 1048582
X-Account-Container-Count: 5

Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes
x-account-project-domain-id: default
X-Trans-Id: txec9ba5c0473d400ebda67-0054c8b8a5
Date: Wed, 28 Jan 2015 10:23:33 GMT

Associated revisions

Revision 93e0966a (diff)
Added by Yuan Zhou almost 5 years ago

rgw: Adding stats in the header of GET response on account

In Swift the GET request on account returns the stats header also.
This patch adds the missing header in the response content to algin
with Swift API:

X-Timestamp
X-Account-Bytes-Used
X-Account-Container-Count
X-Account-Object-Count
X-Account-Bytes-Used-Actual

Fixes #10684
Signed-off-by: Yuan Zhou <>

History

#1 Updated by Abhishek Lekshmanan about 4 years ago

  • Status changed from New to Resolved
  • Regression set to No

Also available in: Atom PDF