Project

General

Profile

Bug #10650

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 over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/27/2015
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Associated revisions

Revision 9a22acc5 (diff)
Added by Radoslaw Zarzynski over 4 years ago

rgw: send Last-Modified header in response for PUT on Swift object.

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

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

rgw: send Last-Modified header in response for PUT on Swift object.

Fixes: #10650
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit 9a22acc57684534a245f25848c23d1db21f16653)

History

#1 Updated by Abhishek Dixit over 4 years ago

I have started working on this.

#2 Updated by Radoslaw Zarzynski over 4 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.

#3 Updated by Yehuda Sadeh about 4 years ago

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

Merged in commit:b446fa11a3b18d42a122a3fdaf6809bfdd228524

#5 Updated by Loic Dachary about 4 years ago

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

Also available in: Atom PDF