Bug #11036
RGW Swift API: response for PUT on /container does not contain the mandatory Content-Length header when FCGI is used
0%
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
Associated revisions
rgw: send Content-Length in response for PUT on Swift container.
Fixes: #11036
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
rgw: send Content-Length in response for PUT on Swift container.
Fixes: #11036
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa)
rgw: send Content-Length in response for PUT on Swift container.
Fixes: #11036
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa)
History
#1 Updated by Radoslaw Zarzynski over 8 years ago
I'm working on that.
#2 Updated by Radoslaw Zarzynski over 8 years ago
The same problem affects DELETE on /container. Fixing it too.
#3 Updated by Radoslaw Zarzynski over 8 years ago
Pull request: https://github.com/ceph/ceph/pull/3863 (also contains commits for #10971)
#4 Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from New to Fix Under Review
- Assignee set to Radoslaw Zarzynski
#5 Updated by Yehuda Sadeh over 8 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to hammer
Merged:
commit 29073d84640b61d0221b2d2ab73c271d60fd13ba
commit d260a93405a7a34a899f716bd9c4e731baa9ffd0
commit 10c1f1aa1e09df5edf5d2f9f9b0273ddbcb384fa
#6 Updated by Loïc Dachary over 8 years ago
- hammer backport https://github.com/ceph/ceph/pull/4579
#7 Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved
- Regression set to No
#8 Updated by Sage Weil over 8 years ago
- Status changed from Resolved to Pending Backport
- Backport changed from hammer to hammer,firefly
#9 Updated by Nathan Cutler about 8 years ago
- Status changed from Pending Backport to Resolved