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
Easiest to set this up with gsutil. Please notice the verbose message.
$ gsutil defacl set private gs://bucket
Setting default object ACL on gs://bucket/...
$ gsutil defacl get gs://bucket
No default object ACL present for gs://bucket. This could occur if the default object ACL is private, in which case objects created in this bucket will be readable only by their creators.
[]
In particular acl.reload and acl.save don't work, probably others too.
It seems this is fixed easily by replacing found['items'] with found.get('items', []) and replacing result[self._URL_PATH_ELEM] with result.get(self._URL_PATH_ELEM, []).
Clarification: Are you authorized as yourself via gsutil when setting private?
Are you authorized as a service account when using gcloud-python?
Easiest to set this up with
gsutil
. Please notice the verbose message.In particular
acl.reload
andacl.save
don't work, probably others too.This works fine if the default ACL is set to
project-private
rather thanprivate
.The text was updated successfully, but these errors were encountered: