Bug #11087
closedRGW Swift API: lack of mandatory ETag header in response for COPY/PUT with X-Copy-From
0%
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
Updated by Radoslaw Zarzynski about 9 years ago
- Assignee set to Radoslaw Zarzynski
Updated by Radoslaw Zarzynski about 9 years ago
- Status changed from New to In Progress
Pull request: https://github.com/ceph/ceph/pull/3991.
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
Updated by Loïc Dachary almost 9 years ago
- Regression set to No
- hammer backport https://github.com/ceph/ceph/pull/4568
Updated by Loïc Dachary almost 9 years ago
- Status changed from Pending Backport to Resolved