-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
API returned: Cannot use ACL API to set object policy when object policies are disabled. #111
Comments
Hello Mark, |
At the moment the fix is to not set ACL bucket wide permissions for the bucket, but leave it the old per-object access control. I think the fix will be to remove ACL data in the API request for those types of buckets. |
From https://cloud.google.com/storage/docs/json_api/v1/objects/insert
So I think just remove the Acl field, and it will be fixed |
I added a potential fix, could you test it? @remibacha Install dev version: Use |
gcs_upload(mtcars, bucket = "mark-bucketlevel-acl",
predefinedAcl = "bucketLevel") |
Everything seems OK now! Good job Mark |
@MarkEdmondson1234 Thanks for the Hotfix. But i Think you missed the gcs_copy_object() function. There should also be a parametervalue "bucketLevel". I tried it with the latest github commit, but it didn't work. and it says
As long as the update isn't available in CRAN. Can you please post a snippet which removes the ACLs from the call to get this work? |
Continued on #132 (comment) |
Now buckets can be set with uniform ACL, the
gcs_upload
fails as it tries to set them. Probably solved by having the option to remove that ACL from the request.The text was updated successfully, but these errors were encountered: