Project

General

Profile

Actions

Bug #10666

closed

RGW swift API: Response header of GET request for container does not contain X-Container-Object-Count, X-Container-Bytes-Used and x-trans-id headers

Added by Ahmad Faheem over 9 years ago. Updated almost 9 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

In swift response returned by GET on container:
curl -i http://10.0.2.15:8080/v1/AUTH_b2419ea9588d49ddbd8c006b5eb199ff/container -X GET -H "X-Auth-Token: 1bdd9fd9c40845a3b4efb81d5d93abe3"

HTTP/1.1 200 OK
Content-Length: 29
X-Container-Object-Count: 5
Accept-Ranges: bytes
X-Storage-Policy: Policy-0
X-Container-Meta-Quota-Count: 10
X-Container-Bytes-Used: 2097158
X-Timestamp: 1422385210.05485
Content-Type: text/plain; charset=utf-8
X-Trans-Id: txc8180b27ba9243a2a99ec-0054c82ceb
Date: Wed, 28 Jan 2015 00:27:23 GMT

response returned by rgw:
curl -i https://10.20.20.15:80/swift/v1/container -X GET -H "X-Auth-Token: c12140163cce491e9aed7165796f1f02"

HTTP/1.1 200 OK
Date: Wed, 28 Jan 2015 10:29:00 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Content-Type: application/octet-stream
Connection: close
Transfer-Encoding: chunked

Actions

Also available in: Atom PDF