-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix #151/#163: use ACL-specific endpoints where feasible for buckets and keys #318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Changes Unknown when pulling e69c8fc on tseaver:151-163-use_acl_endpoints into * on GoogleCloudPlatform:master*. |
The demo still runs with this branch, but it doesn't exercise the ACL stuff, which is borked. Review is OK, but I need to track that breakage down. |
As of e74972d, I can now save / clear ACLs for buckets and keys. ccf2a96 adds support for the fact that the back-end makes some bucket ACL entries "sticky" (they are preserved fter a successful PATCH with |
Changes Unknown when pulling ccf2a96 on tseaver:151-163-use_acl_endpoints into * on GoogleCloudPlatform:master*. |
Changes Unknown when pulling c5c9246 on tseaver:151-163-use_acl_endpoints into * on GoogleCloudPlatform:master*. |
:rtype: :class:`Bucket` | ||
:returns: The bucket you just reloaded data for. | ||
""" | ||
projection = 'full' if full else 'noAcl' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Changes Unknown when pulling 89c80fa on tseaver:151-163-use_acl_endpoints into * on GoogleCloudPlatform:master*. |
query_params={'projection': 'full'}) | ||
self.acl.clear() | ||
for entry in result['acl']: | ||
self.acl.entity(self.acl.entity_from_dict(entry)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Changes Unknown when pulling 4dde9cb on tseaver:151-163-use_acl_endpoints into * on GoogleCloudPlatform:master*. |
Changes Unknown when pulling 4dde9cb on tseaver:151-163-use_acl_endpoints into * on GoogleCloudPlatform:master*. |
Changes Unknown when pulling a4bb709 on tseaver:151-163-use_acl_endpoints into * on GoogleCloudPlatform:master*. |
@@ -341,9 +351,13 @@ def get_metadata(self, field=None, default=None): | |||
:rtype: dict or anything | |||
:returns: All metadata or the value of the specific field. | |||
""" | |||
# We ignore 'acl' / 'defaultObjectAcl' because they should be | |||
# handled via 'get_acl()' / 'get_default_object_acl()' | |||
if field in ('acl', 'defaultObjectAcl'): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
LGTM, though if you want to raise a |
resource (we can't do incremental updates to ACEs).
Fixes #151 and #163.