Set ACLs during copy object

pull/53/head
Andrew Gaul 2015-04-18 04:38:03 -07:00
rodzic 38210cc498
commit 43b21829c7
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -1067,6 +1067,13 @@ final class S3ProxyHandler extends AbstractHandler {
throw new S3Exception(S3ErrorCode.NO_SUCH_KEY, knfe);
}
// TODO: jclouds should include this in CopyOptions
String cannedAcl = request.getHeader("x-amz-acl");
if (cannedAcl != null && !cannedAcl.equalsIgnoreCase("private")) {
handleSetBlobAcl(request, response, blobStore, destContainerName,
destBlobName);
}
BlobMetadata blobMetadata = blobStore.blobMetadata(destContainerName,
destBlobName);
try (Writer writer = response.getWriter()) {