Project

General

Profile

Bug #10873

RGW does not send Date HTTP header when civetweb frontend is used

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

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
02/13/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

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

Copied to rgw - Backport #11871: RGW does not send Date HTTP header when civetweb frontend is used Resolved 02/13/2015
Copied to rgw - Backport #11872: RGW does not send Date HTTP header when civetweb frontend is used Resolved 02/13/2015

Associated revisions

Revision ea384f83 (diff)
Added by Radoslaw Zarzynski about 4 years ago

rgw: generate the "Date" HTTP header for civetweb.

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

Revision 99301384 (diff)
Added by Radoslaw Zarzynski almost 4 years ago

rgw: generate the "Date" HTTP header for civetweb.

Fixes: #10873
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit ea384f83b601f60e135c3d3f960fdb75a919dd84)

Revision e39dce79 (diff)
Added by Radoslaw Zarzynski almost 4 years ago

rgw: generate the "Date" HTTP header for civetweb.

Fixes: #10873
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit ea384f83b601f60e135c3d3f960fdb75a919dd84)

History

#1 Updated by Radoslaw Zarzynski over 4 years ago

I'm working on that.

#2 Updated by Dmytro Yurchenko over 4 years ago

  • Assignee set to Radoslaw Zarzynski

#4 Updated by Dmytro Yurchenko about 4 years ago

  • Status changed from New to Need Review

#5 Updated by Sage Weil almost 4 years ago

  • Status changed from Need Review to Pending Backport
  • Backport set to hammer,firefly
  • Regression set to No

#6 Updated by Sage Weil almost 4 years ago

confirmed to fix multipart upload with crossftp (on hammer and firefly)

#7 Updated by Loic Dachary over 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF