Bug #12158
RGW Swift API: response for GET on Swift account doesn't contain mandatory Content-Length header
0%
Description
1. RGW via FCGI frontend:
$ curl -i ${publicURL}/ -X GET -H "X-Auth-Token: ${token}"
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 25 Jun 2015 15:18:50 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Timestamp: 1435245530.12126
X-Account-Container-Count: 4
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
X-Trans-Id: ts-default.4122.10-20150625:151850:114aaaa10
cont10
cont12
cont15
2. Swift:
$ curl -i ${publicURL}/ -X GET -H "X-Auth-Token: ${token}"
HTTP/1.1 200 OK
Content-Length: 5
Accept-Ranges: bytes
X-Account-Object-Count: 1
X-Timestamp: 1430929360.01528
X-Account-Bytes-Used: 0
X-Account-Container-Count: 1
Content-Type: text/plain; charset=utf-8
X-Account-Meta-Test: NOP
X-Trans-Id: tx070a590a7fb540399b766-00558c1c0f
Date: Thu, 25 Jun 2015 15:19:43 GMTcont
Related issues
Associated revisions
rgw: send Content-Length in response for GET on Swift account.
Fixes: #12158
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
rgw: send Content-Length in response for GET on Swift account.
Fixes: #12158
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 5f47b11791cd46ce2771046e4888575869cc9685)
Conflicts:
src/rgw/rgw_rest_swift.cc
rgw: send Content-Length in response for GET on Swift account.
Fixes: #12158
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 5f47b11791cd46ce2771046e4888575869cc9685)
Conflicts:
src/rgw/rgw_rest_swift.cc
omit dump_account_metadata() call
History
#1 Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from New to In Progress
- Assignee set to Radoslaw Zarzynski
#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/5078.
#3 Updated by Loïc Dachary over 8 years ago
- Status changed from Fix Under Review to Pending Backport
#4 Updated by Loïc Dachary over 8 years ago
- Backport set to hammer
#5 Updated by Nathan Cutler about 8 years ago
- Backport changed from hammer to firefly,hammer
#6 Updated by Nathan Cutler about 8 years ago
- Status changed from Pending Backport to Resolved