Bug #10873
RGW does not send Date HTTP header when civetweb frontend is used
0%
Description
The Date header is mandatory according to OpenStack Object Storage API v1. The Swift and FastCGI frontend (or HTTP server) generate it properly.
1. RGW via civetweb: curl -i "http://localhost:8000/swift/v1/cont1" -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 204 No Content X-Container-Object-Count: 1 X-Container-Bytes-Used: 0 X-Container-Bytes-Used-Actual: 0 X-Storage-Policy: default-placement Content-type: text/plain; charset=utf-8 Content-Length: 0
2. RGW via nginx: curl -i "http://localhost:8080/swift/v1/cont1" -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 204 No Content Server: nginx/1.4.6 (Ubuntu) Date: Thu, 12 Feb 2015 13:05:50 GMT Content-Type: text/plain; charset=utf-8 Connection: keep-alive X-Container-Object-Count: 1 X-Container-Bytes-Used: 0 X-Container-Bytes-Used-Actual: 0 X-Storage-Policy: default-placement
Related issues
Associated revisions
rgw: generate the "Date" HTTP header for civetweb.
Fixes: #10873
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
rgw: generate the "Date" HTTP header for civetweb.
Fixes: #10873
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit ea384f83b601f60e135c3d3f960fdb75a919dd84)
rgw: generate the "Date" HTTP header for civetweb.
Fixes: #10873
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit ea384f83b601f60e135c3d3f960fdb75a919dd84)
History
#1 Updated by Radoslaw Zarzynski about 9 years ago
I'm working on that.
#2 Updated by Dmytro Yurchenko about 9 years ago
- Assignee set to Radoslaw Zarzynski
#3 Updated by Radoslaw Zarzynski about 9 years ago
Pull request: https://github.com/ceph/ceph/pull/3761.
#4 Updated by Dmytro Yurchenko about 9 years ago
- Status changed from New to Fix Under Review
#5 Updated by Sage Weil almost 9 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to hammer,firefly
- Regression set to No
#6 Updated by Sage Weil almost 9 years ago
confirmed to fix multipart upload with crossftp (on hammer and firefly)
#7 Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved