Skip to content

Unable to set destinationDefaultAcl for copied objects #3466

Description

@frankyn

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions