Project

General

Profile

Actions

Bug #10873

closed

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

Added by Radoslaw Zarzynski about 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
hammer,firefly
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 2 (0 open2 closed)

Copied to rgw - Backport #11871: RGW does not send Date HTTP header when civetweb frontend is usedResolvedRadoslaw Zarzynski02/13/2015Actions
Copied to rgw - Backport #11872: RGW does not send Date HTTP header when civetweb frontend is usedResolvedAbhishek Lekshmanan02/13/2015Actions
Actions #1

Updated by Radoslaw Zarzynski about 9 years ago

I'm working on that.

Actions #2

Updated by Dmytro Yurchenko about 9 years ago

  • Assignee set to Radoslaw Zarzynski
Actions #4

Updated by Dmytro Yurchenko about 9 years ago

  • Status changed from New to Fix Under Review
Actions #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
Actions #6

Updated by Sage Weil almost 9 years ago

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

Actions #7

Updated by Loïc Dachary over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF