s3 icon indicating copy to clipboard operation
s3 copied to clipboard

ACL method not found

Open daniel-lanciana opened this issue 12 years ago • 3 comments

The code:

require "s3"
service = S3::Service.new(:access_key_id => "foo",
                          :secret_access_key => "bar")

bucket = service.buckets.find("my-bucket") # bucket exists
object = bucket.objects.find("my-file.html") # object exists
puts object.request_acl

Results in:

s3.rb:9:in `<main>': undefined method `request_acl' for #<S3::Object:/my-bucket/my-file.html> (NoMethodError)

How do I list an object's permissions? Cheers.

daniel-lanciana avatar Feb 07 '13 01:02 daniel-lanciana

It may not be possible atm. Please create a pull request for that :-).

qoobaa avatar Feb 07 '13 07:02 qoobaa

This should be fixed, no?

malachaifrazier avatar May 14 '14 14:05 malachaifrazier

Unsure, isn't there any other way of checking ACL?

qoobaa avatar May 14 '14 14:05 qoobaa