Project

General

Profile

Bug #12158

RGW Swift API: response for GET on Swift account doesn't contain mandatory Content-Length header

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:
firefly,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 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:114

aaaa10
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 GMT

cont


Related issues

Copied to rgw - Backport #12918: RGW Swift API: response for GET on Swift account doesn't contain mandatory Content-Length header Resolved 06/25/2015
Copied to rgw - Backport #13361: RGW Swift API: response for GET on Swift account doesn't contain mandatory Content-Length header Resolved

Associated revisions

Revision 5f47b117 (diff)
Added by Radoslaw Zarzynski over 8 years ago

rgw: send Content-Length in response for GET on Swift account.

Fixes: #12158
Signed-off-by: Radoslaw Zarzynski <>

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

rgw: send Content-Length in response for GET on Swift account.

Fixes: #12158
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit 5f47b11791cd46ce2771046e4888575869cc9685)
Conflicts:
src/rgw/rgw_rest_swift.cc

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

rgw: send Content-Length in response for GET on Swift account.

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

#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

Also available in: Atom PDF