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

uninitialized constant Aws::S3::Grantee::Bucket #67

Closed
NeMO84 opened this issue Apr 15, 2011 · 3 comments
Closed

uninitialized constant Aws::S3::Grantee::Bucket #67

NeMO84 opened this issue Apr 15, 2011 · 3 comments

Comments

@NeMO84
Copy link
Contributor

NeMO84 commented Apr 15, 2011

I get a "uninitialized constant Aws::S3::Grantee::Bucket" error when I attempt to initialize a new grantee. Below is the stack trace.

Aws::S3::Grantee.new(nil, nil)
NameError: uninitialized constant Aws::S3::Grantee::Bucket
from /usr/local/lib/ruby/gems/1.9.1/gems/aws-2.4.5/lib/s3/grantee.rb:48:in owner_and_grantees' from /usr/local/lib/ruby/gems/1.9.1/gems/aws-2.4.5/lib/s3/grantee.rb:70:ingrantees'
from /usr/local/lib/ruby/gems/1.9.1/gems/aws-2.4.5/lib/s3/grantee.rb:195:in refresh' from /usr/local/lib/ruby/gems/1.9.1/gems/aws-2.4.5/lib/s3/grantee.rb:113:ininitialize'
from (irb):6:in new' from (irb):6 from /usr/local/bin/irb:12:in

'

Note: I am only using nil to demonstrate that I don't the invalid input error I would expect and instead get a constant uninitialized error.

I am running on 1.9.2.

@treeder
Copy link
Member

treeder commented Apr 19, 2011

This commit should fix it: 9e99105

Can you try and verify using latest sources? thanks!

@treeder treeder closed this as completed Apr 19, 2011
@NeMO84
Copy link
Contributor Author

NeMO84 commented Apr 19, 2011

Your fix works for the issue specified but there are still other issues with S3. Please reveiw #69 to confirm the changes.

Thanks.

@treeder
Copy link
Member

treeder commented Apr 19, 2011

Pulled that pull request in. Thanks!

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

2 participants