You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Thanks for stopping by to let us know something could be better!
Environment details
macOS 10.15
Python 3.6.5
google-cloud-storage==1.20.0
Steps to reproduce
Upload a blob with a predefined ACL of publicRead
Copy this blob with preserve_acl set to true
Expected result is that the new blob is set to publicRead, but this ACL isn't actually preserved
Calling make_public() on the new blob correct sets it to publicRead
Code example
file_obj=BytesIO(...)
blob.upload_from_file(file_obj, content_type='...', predefined_acl='publicRead')
bucket=storage_client.get_bucket(...)
bucket.copy_blob(blob, destination_bucket=bucket, new_name='new-name.jpg', preserve_acl=True)
# At this point, the blob will not be set to public
Thanks for stopping by to let us know something could be better!
Environment details
Steps to reproduce
make_public()on the new blob correct sets it to publicReadCode example