In PUT Object Copy, 'x-amz-metadata-directive: REPLACE' does not work.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Swift3 |
In Progress
|
Undecided
|
Darryl Tam |
Bug Description
When I specify 'x-amz-
I expect that metada is not copied.
However, metadata is copied in Swift3.
@ swift3
$ ./s3curl.pl --id test -- http://
$ ./s3curl.pl --id test -- http://
$ ./s3curl.pl --id test -- http://
HTTP/1.1 200 OK
Content-Length: 1024
x-amz-id-2: tx746fb065c2844
Last-Modified: Thu, 19 Mar 2015 02:37:01 GMT
ETag: "44f488ecb06737
x-amz-meta-src: src
x-amz-request-id: tx746fb065c2844
Content-Type: application/
X-Trans-Id: tx746fb065c2844
Date: Thu, 19 Mar 2015 02:37:18 GMT
$ ./s3curl.pl --id test -- http://
<?xml version='1.0' encoding='UTF-8'?>
<CopyObjectResult xmlns="http://
<LastModifi
<ETag>
</CopyObjectResult>
$ ./s3curl.pl --id test -- http://
HTTP/1.1 200 OK
Content-Length: 1024
x-amz-id-2: tx3c15c21e428a4
Last-Modified: Thu, 19 Mar 2015 02:38:20 GMT
ETag: "44f488ecb06737
x-amz-meta-src: src
x-amz-request-id: tx3c15c21e428a4
Content-Type: application/
X-Trans-Id: tx3c15c21e428a4
Date: Thu, 19 Mar 2015 02:38:39 GMT
@AWS S3
$ ./s3curl.pl --id aws -- https:/
$ ./s3curl.pl --id aws -- https:/
$ ./s3curl.pl --id aws -- https:/
HTTP/1.1 200 OK
x-amz-id-2: WV48YhMTWKi2mGH
x-amz-request-id: 38040BF125E38834
Date: Thu, 19 Mar 2015 02:42:29 GMT
x-amz-meta-src: src
Last-Modified: Thu, 19 Mar 2015 02:41:59 GMT
ETag: "44f488ecb06737
Accept-Ranges: bytes
Content-Type: binary/octet-stream
Content-Length: 1024
Server: AmazonS3
$ ./s3curl.pl --id aws -- https:/
<?xml version="1.0" encoding="UTF-8"?>
<CopyObjectResult xmlns="http://
<LastModifi
<ETag>
</CopyObjectResult>
$ ./s3curl.pl --id aws -- https:/
HTTP/1.1 200 OK
x-amz-id-2: qJ0CZR0wUGULMX3
x-amz-request-id: EAB3FE18DD19EE81
Date: Thu, 19 Mar 2015 02:43:45 GMT
Last-Modified: Thu, 19 Mar 2015 02:43:27 GMT
ETag: "44f488ecb06737
Accept-Ranges: bytes
Content-Type: binary/octet-stream
Content-Length: 1024
Server: AmazonS3
Changed in swift3: | |
assignee: | nobody → Darryl Tam (dtam) |
Changed in swift3: | |
status: | Incomplete → In Progress |
Please specify the meta data you want to replace at the copy request.
S3 api reference[1] shows the description about x-amz-metadata- directive as follows:
If replaced, all original metadata is replaced by the metadata you specify.
1: http:// docs.aws. amazon. com/AmazonS3/ latest/ API/RESTObjectC OPY.html