Bug #11087
RGW 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
Related issues
Associated revisions
rgw: send ETag, Last-Modified in response for copying Swift cobject.
Fixes: #11087
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
rgw: send ETag, Last-Modified in response for copying Swift cobject.
Fixes: #11087
Backport: hammer
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(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
Pull request: https://github.com/ceph/ceph/pull/3991.
#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
- hammer backport https://github.com/ceph/ceph/pull/4568
#7 Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved