hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Jannot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11687) Ignore x-emc-* headers when copying an Amazon S3 object
Date Mon, 09 Mar 2015 21:31:39 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14353650#comment-14353650
] 

Denis Jannot commented on HADOOP-11687:
---------------------------------------

By modifying the code below to remove all the x-* metadata which aren't x-amz-* metadata

ObjectMetadata srcom = s3.getObjectMetadata(bucket, srcKey);
final ObjectMetadata dstom = srcom.clone();
if (StringUtils.isNotBlank(serverSideEncryptionAlgorithm)) {
dstom.setServerSideEncryption(serverSideEncryptionAlgorithm);
}
CopyObjectRequest copyObjectRequest = new CopyObjectRequest(bucket, srcKey, bucket, dstKey);
copyObjectRequest.setCannedAccessControlList(cannedACL);
copyObjectRequest.setNewObjectMetadata(dstom);

> Ignore x-emc-* headers when copying an Amazon S3 object
> -------------------------------------------------------
>
>                 Key: HADOOP-11687
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11687
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs/s3
>    Affects Versions: 2.7.0
>            Reporter: Denis Jannot
>
> The EMC ViPR/ECS object storage platform uses proprietary headers starting by x-emc-*
(like Amazon does with x-amz-*).
> Headers starting by x-emc-* should be included in the signature computation, but it's
not done by the Amazon S3 Java SDK (it's done by the EMC S3 SDK).
> When s3a copy an object it copies all the headers, but when the object includes x-emc-*
headers, it generates a signature mismatch.
> Removing the x-emc-* headers from the copy would allow s3a to be compatible with the
EMC ViPR/ECS object storage platform.
> Removing the x-* which aren't x-amz-* headers from the copy would allow s3a to be compatible
with any object storage platform which is using proprietary headers



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message