Actions
Bug #15810
closedRGW Swift API: response for HEAD on object doesn't contain mandatory Content-Length header for zero-size object
Status:
Won't Fix
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
$ curl -i ${publicURL}/cont/object -X GET -H "X-Auth-Token: $token" HTTP/1.1 200 OK Date: Wed, 04 May 2016 08:05:37 GMT Server: Apache Accept-Ranges: bytes X-Object-Meta-test: Test_metadata_content Content-Length: 0 Last-Modified: Wed, 04 May 2016 08:04:20 GMT etag: d41d8cd98f00b204e9800998ecf8427e $ curl -i ${publicURL}/cont/object --head -H "X-Auth-Token: $token" HTTP/1.1 200 OK Date: Wed, 04 May 2016 08:04:25 GMT Server: Apache Accept-Ranges: bytes X-Object-Meta-test: Test_metadata_content Last-Modified: Wed, 04 May 2016 08:04:20 GMT etag: d41d8cd98f00b204e9800998ecf8427e
In Swift documentation this header not marked as optional.
Updated by Valeriy Pastushenko almost 8 years ago
Tested on 0.80.9 version, release: firefly.
Updated by Yehuda Sadeh almost 8 years ago
- Status changed from New to Won't Fix
The content length http header is not mandatory if there's no content (the object is empty in this case). The problem is with apache removes the http header, and there's no way to make it return it. Using the civetweb front end will solve this issue for you.
Actions