Project

General

Profile

Bug #11087

RGW Swift API: lack of mandatory ETag header in response for COPY/PUT with X-Copy-From

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

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

0%

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

Description

1. RGW via the FastCGI frontend (COPY): curl -i http://localhost:8080/swift/v1/cont/file -X COPY -H "X-Auth-Token: $token" -H "Content-Length: 0" -H "Destination: cont/file_by_COPY"

HTTP/1.1 201 Created
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 10 Mar 2015 16:57:30 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

2. RGW via the FastCGI frontend (PUT with X-Copy-From): curl -i http://localhost:8080/swift/v1/cont/file_copied -X PUT -H "X-Auth-Token: $token" -H "Content-Length: 0" -H "X-Copy-From: cont/file"

HTTP/1.1 201 Created
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 10 Mar 2015 16:46:17 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

3. Swift: curl -i http://localhost:9090/v1/AUTH_test/cont/file_copied -X PUT -H "X-Auth-Token: $token" -H "Content-Length: 0" -H "X-Copy-From: cont/file"

HTTP/1.1 201 Created
Content-Length: 0
X-Copied-From-Last-Modified: Fri, 27 Feb 2015 14:57:02 GMT
X-Copied-From: cont/file
Last-Modified: Tue, 10 Mar 2015 16:51:33 GMT
Etag: d41d8cd98f00b204e9800998ecf8427e
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txfef50586cbc94c37beb71-0054ff2114
Date: Tue, 10 Mar 2015 16:51:32 GMT


Related issues

Related to rgw - Bug #10663: RGW swift API: Response header of COPY request for object does not contain x-copied-from, custom metadata, x-copied-from-last-modified, X-Copied-From-Account headers Resolved 01/28/2015

Associated revisions

Revision 385fe4b4 (diff)
Added by Radoslaw Zarzynski over 8 years ago

rgw: send ETag, Last-Modified in response for copying Swift cobject.

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

Revision c9e6a0bf (diff)
Added by Radoslaw Zarzynski over 8 years ago

rgw: send ETag, Last-Modified in response for copying Swift cobject.

Fixes: #11087
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit 385fe4b4bbbd4a9aab92abf2a813090deeaa037e)

History

#1 Updated by Radoslaw Zarzynski over 8 years ago

I'm working on that.

#2 Updated by Radoslaw Zarzynski over 8 years ago

Related issue: #10663.

#3 Updated by Radoslaw Zarzynski over 8 years ago

  • Assignee set to Radoslaw Zarzynski

#4 Updated by Radoslaw Zarzynski over 8 years ago

  • Status changed from New to In Progress

#5 Updated by Yehuda Sadeh over 8 years ago

  • Status changed from In Progress to Pending Backport
  • Backport set to hammer

Fix merged at commit:7efea25c6c72b3e9556fe8ffaeb29e2c841dd459

#6 Updated by Loïc Dachary over 8 years ago

  • Regression set to No

#7 Updated by Loïc Dachary over 8 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF