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 }}
Repository navigation
storage: some acl methods fail on empty (private) acl #652
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?
Activity
dhermes commentedon Feb 17, 2015
@pdknsk Thanks again for the great report!
I don't fully understand the meaning of
privateIt seems this is fixed easily by replacing
found['items']withfound.get('items', [])and replacingresult[self._URL_PATH_ELEM]withresult.get(self._URL_PATH_ELEM, []).Clarification: Are you authorized as yourself via
gsutilwhen setting private?Are you authorized as a service account when using
gcloud-python?pdknsk commentedon Feb 19, 2015
It's a predefined ACL. I use the same owner account for both, set up with
gcloud auth.dhermes commentedon Feb 19, 2015
@pdknsk Do you use
gcloud authwith a user account (e.g. dannylobsternotrealemail@gmail.com) and then use a service account withgcloud-python?pdknsk commentedon Feb 19, 2015
Nope, it's a user account in both cases.
Merge pull request #682 from tseaver/652-handle_empty_acls
chore: [autoapprove] bump cryptography from 41.0.3 to 41.0.4 (#652)
chore: [autoapprove] bump cryptography from 41.0.3 to 41.0.4 (#652)
build(deps): [autoapprove] bump cryptography from 41.0.0 to 41.0.2 (#652
chore(deps): update dependency apache-beam to v2.41.0 (#652)
chore: Update gapic-generator-python to v1.6.1 (#652)
fix: refactor global cache to address concurrency and fault tolerance…
chore(deps): update dependency google-cloud-bigquery to v2.16.1 (#652)
fix: bump version number after 2.2.1b1 release (#652)
tests: Add tests back that were removed in PR #652 (#664)
feat: add isolation level support and sample (#652)
docs: migrate code from googleapis/python-bigquery (#18303)