Project

General

Profile

Actions

Bug #11087

closed

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

Added by Radoslaw Zarzynski about 9 years ago. Updated almost 9 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 1 (0 open1 closed)

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 headersResolvedRadoslaw Zarzynski01/28/2015

Actions
Actions #1

Updated by Radoslaw Zarzynski about 9 years ago

I'm working on that.

Actions #2

Updated by Radoslaw Zarzynski about 9 years ago

Related issue: #10663.

Actions #3

Updated by Radoslaw Zarzynski about 9 years ago

  • Assignee set to Radoslaw Zarzynski
Actions #4

Updated by Radoslaw Zarzynski about 9 years ago

  • Status changed from New to In Progress
Actions #5

Updated by Yehuda Sadeh about 9 years ago

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

Fix merged at commit:7efea25c6c72b3e9556fe8ffaeb29e2c841dd459

Actions #6

Updated by Loïc Dachary almost 9 years ago

  • Regression set to No
Actions #7

Updated by Loïc Dachary almost 9 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF