Project

General

Profile

Bug #11036

RGW Swift API: response for PUT on /container does not contain the mandatory Content-Length header when FCGI is used

Added by Radoslaw Zarzynski over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
03/05/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
hammer,firefly
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

1. RGW via civetweb: curl -i http://localhost:8000/swift/v1/cont2 -X PUT -H "X-Auth-Token: $token"

HTTP/1.1 201 Created
Content-type: text/plain; charset=utf-8
Content-Length: 0

2. RGW via FastCGI: curl -i http://localhost:8080/swift/v1/cont3 -X PUT -H "X-Auth-Token: $token"

HTTP/1.1 201 Created
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 05 Mar 2015 19:06:18 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

3. Swift: curl -i http://localhost:9090/v1/AUTH_test/cont3 -X PUT -H "X-Auth-Token: $token"

HTTP/1.1 201 Created
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txf97b4bfb4d214b8a8cb25-0054f8b7bc
Date: Thu, 05 Mar 2015 20:08:28 GMT

The header is mandatory according to: http://docs.openstack.org/api/openstack-object-storage/1.0/content/PUT_createContainer__v1__account___container__storage_container_services.html.
Similar issue: #10650.


Related issues

Copied to rgw - Backport #12039: RGW Swift API: response for PUT on /container does not contain the mandatory Content-Length header when FCGI is used Resolved 03/05/2015
Copied to rgw - Backport #12040: RGW Swift API: response for PUT on /container does not contain the mandatory Content-Length header when FCGI is used Resolved 03/05/2015

Associated revisions

Revision 10c1f1aa (diff)
Added by Radoslaw Zarzynski over 3 years ago

rgw: send Content-Length in response for PUT on Swift container.

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

Revision d39a6600 (diff)
Added by Radoslaw Zarzynski over 3 years ago

rgw: send Content-Length in response for PUT on Swift container.

Fixes: #11036
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa)

Revision 177324ce (diff)
Added by Radoslaw Zarzynski over 3 years ago

rgw: send Content-Length in response for PUT on Swift container.

Fixes: #11036
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa)

History

#1 Updated by Radoslaw Zarzynski over 3 years ago

I'm working on that.

#2 Updated by Radoslaw Zarzynski over 3 years ago

The same problem affects DELETE on /container. Fixing it too.

#3 Updated by Radoslaw Zarzynski over 3 years ago

Pull request: https://github.com/ceph/ceph/pull/3863 (also contains commits for #10971)

#4 Updated by Radoslaw Zarzynski over 3 years ago

  • Status changed from New to Need Review
  • Assignee set to Radoslaw Zarzynski

#5 Updated by Yehuda Sadeh over 3 years ago

  • Status changed from Need Review to Pending Backport
  • Backport set to hammer

Merged:
commit 29073d84640b61d0221b2d2ab73c271d60fd13ba
commit d260a93405a7a34a899f716bd9c4e731baa9ffd0
commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa

#7 Updated by Loic Dachary over 3 years ago

  • Status changed from Pending Backport to Resolved
  • Regression set to No

#8 Updated by Sage Weil over 3 years ago

  • Status changed from Resolved to Pending Backport
  • Backport changed from hammer to hammer,firefly

#9 Updated by Nathan Cutler over 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF