Skip to content
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

Storage#put_object_acl does not accept canned ACLs #324

Closed
easkay opened this issue Apr 19, 2018 · 0 comments
Closed

Storage#put_object_acl does not accept canned ACLs #324

easkay opened this issue Apr 19, 2018 · 0 comments

Comments

@easkay
Copy link
Contributor

easkay commented Apr 19, 2018

Hi Folks,

I admit my use case is rather strange as I tend to use the lower level API methods and requests as opposed to the models, and I realise I can use the models if I need to. I'm intending on setting an ACL long after an object has been uploaded to the bucket, and so I'd like to avoid downloading the object in order to re-upload it.

However, onto my problem - I am trying to use the put_object_acl method/request in the following manner connection.put_object_acl(bucket_name, object_name, 'public-read'), which is officially supported in the XML API documentation (see the blue note).

At the moment, the code is not set up to look for a predefined ACL as the third argument, and instead expects a Hash from which it can construct the request body. I would like to use predefined ACLs, as is supported by the AWS equivalent request. I'm looking at forking the repo at the moment and getting stuck in if you don't mind.

Thanks for reading. :)

-- easkay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant