Project

General

Profile

Actions

Bug #10663

closed

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

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

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

0%

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

Description

Steps to reproduce:

1. swift post container
2. swift upload container file1

Response returned by rgw:
3. curl -i https://10.20.20.15:80/swift/v1/container/file1 -X COPY -H "X-Auth-Token: 28498ad3697c494fb7cb859947a3d1d0" -H "Destination: container/file2" -H "x-object-meta-testmeta2: data2"

HTTP/1.1 201 Created
Date: Wed, 28 Jan 2015 06:10:38 GMT
Server: Apache/2.4.7 (Ubuntu)
Access-Control-Allow-Origin: *
Content-Type: application/octet-stream
Connection: close
Transfer-Encoding: chunked

Response returned by swift:

3. curl -i http://10.0.2.15:8080/v1/AUTH_b2419ea9588d49ddbd8c006b5eb199ff/container/file1 -X COPY -H "X-Auth-Token: bd4089d017d24203a9b6fe08daeb464a" -H "Destination: container/file2" -H "x-object-meta-testmeta: data"

HTTP/1.1 201 Created
Content-Length: 0
X-Object-Meta-Mtime: 1422392742.632376
X-Copied-From-Last-Modified: Tue, 27 Jan 2015 21:05:54 GMT
X-Copied-From: container/file1
X-Object-Meta-Testmeta: data

Last-Modified: Tue, 27 Jan 2015 21:07:36 GMT
Etag: 764efa883dda1e11db47671c4a3bbd9e
X-Copied-From-Account: AUTH_b2419ea9588d49ddbd8c006b5eb199ff
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txaf00fbce0ec346579a5f2-0054c7fe17
Date: Tue, 27 Jan 2015 21:07:35 GMT


Related issues 1 (0 open1 closed)

Related to rgw - Bug #11087: RGW Swift API: lack of mandatory ETag header in response for COPY/PUT with X-Copy-FromResolvedRadoslaw Zarzynski03/10/2015

Actions
Actions #1

Updated by Radoslaw Zarzynski about 9 years ago

I'm working on that as well as on #11087 which is a very similar issue.

Actions #2

Updated by Radoslaw Zarzynski about 9 years ago

  • Status changed from New to In Progress
  • Assignee set to Radoslaw Zarzynski
Actions #3

Updated by Yehuda Sadeh about 9 years ago

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

Merged at commit:7efea25c6c72b3e9556fe8ffaeb29e2c841dd459

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