Skip to content

Unable to set destinationDefaultAcl for copied objects #3466

@frankyn

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

Metadata

Metadata

Assignees

Labels

triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions