Project

General

Profile

Actions

Bug #10650

closed

Response header of swift API PUT /container/object returned by RGW does not contain last-modified, content-length, x-trans-id headers. But Swift returns these headers.

Added by Ahmad Faheem about 9 years ago. Updated almost 9 years ago.

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

0%

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

Description

Steps to reproduce:

1. swift post container
2. curl -i https://object.jiocloud.com:80/swift/v1/container/file1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 872b09e8fd42429dae728488de96cc74" -d ""

HTTP/1.1 201 Created
Date: Tue, 27 Jan 2015 10:57:54 GMT
Server: Apache/2.4.7 (Ubuntu)
etag: d41d8cd98f00b204e9800998ecf8427e
Access-Control-Allow-Origin: *
Content-Type: application/octet-stream
Connection: close
Transfer-Encoding: chunked

Response returned by swift:
curl -i http://10.0.2.15:8080/v1/AUTH_b2419ea9588d49ddbd8c006b5eb199ff/cont/file1 -X PUT -H "X-Auth-Token: e41014e4abc74cbd92c16772fa462dd5" -H "content-length: 0" -d ""

HTTP/1.1 201 Created
Last-Modified: Tue, 27 Jan 2015 11:02:49 GMT
Content-Length: 0
Etag: d41d8cd98f00b204e9800998ecf8427e
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx229a73e9c585467998ba4-0054c77057
Date: Tue, 27 Jan 2015 11:02:48 GMT

Actions #1

Updated by Abhishek Dixit about 9 years ago

I have started working on this.

Actions #2

Updated by Radoslaw Zarzynski about 9 years ago

One-line fix adding the Last-Modified header in response for PUT on object: https://github.com/ceph/ceph/pull/4001.
Lack of it causes early failure of many tests and thus might hide other, much more severe problems.

Actions #3

Updated by Yehuda Sadeh about 9 years ago

  • Status changed from New to Pending Backport
  • Backport set to hammer

Merged in commit:b446fa11a3b18d42a122a3fdaf6809bfdd228524

Actions #5

Updated by Loïc Dachary almost 9 years ago

  • Status changed from Pending Backport to Resolved
  • Regression set to No
Actions

Also available in: Atom PDF