Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set destinationDefaultAcl for copied objects #3466

Closed
frankyn opened this issue Jul 12, 2018 · 0 comments · Fixed by #3467
Closed

Unable to set destinationDefaultAcl for copied objects #3466

frankyn opened this issue Jul 12, 2018 · 0 comments · Fixed by #3467
Assignees
Labels
triage me I really want to be triaged.

Comments

@frankyn
Copy link
Contributor

frankyn commented Jul 12, 2018

GCS client library doesn't support ACL properties when performing a copy/rewrite operation.

Storage.CopyRequest copyRequest = Storage.CopyRequest.newBuilder()
         .setSource(sourceBucketName, sourcePath)
         .setTarget(BlobId.of(destinationBucketName, destinationPath),
                   BlobTargetOption.predefinedAcl(PredefinedAcl.PUBLIC_READ))
         .build();
         storage.copy(copyRequest).getResult();

Issue is predefinedAcl isn't being set in rewrite request.
Ref: HttpStorageRpc.java#L797

@frankyn frankyn self-assigned this Jul 12, 2018
@JustinBeckwith JustinBeckwith added the triage me I really want to be triaged. label Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants