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

Word credentials repeated on storage/s3.rb #149

Closed
josueadelima opened this issue Mar 17, 2017 · 4 comments
Closed

Word credentials repeated on storage/s3.rb #149

josueadelima opened this issue Mar 17, 2017 · 4 comments

Comments

@josueadelima
Copy link

josueadelima commented Mar 17, 2017

On line 304 word credentials is repeated

s3.client.config.credentials.credentials.access_key_id

@josueadelima josueadelima changed the title Double credentials on stora s3.rb Double credentials on storages/s3.rb Mar 17, 2017
@josueadelima josueadelima changed the title Double credentials on storages/s3.rb Double credentials on storage/s3.rb Mar 17, 2017
@josueadelima josueadelima changed the title Double credentials on storage/s3.rb Word credentials repeated on storage/s3.rb Mar 17, 2017
@janko
Copy link
Member

janko commented Mar 18, 2017

This was done intentionally, because I saw refile/refile-s3#31 and refile/refile-s3#18 being opened. However, I now think this not needed, as we can access the credentials directly from Aws::S3::Client#config. I will push a change shortly for this.

@janko janko closed this as completed in 4cc08f4 Mar 18, 2017
@josueadelima
Copy link
Author

josueadelima commented Mar 19, 2017

Thanks!, this was generating an error, using the aws-sdk 2.8.7 and using cache and store with S3, will update shrine from github.

@janko
Copy link
Member

janko commented Mar 19, 2017

@josueadelima Can you tell me which error it was raising? I cannot reproduce it with aws-sdk 2.8.7:

require "aws-sdk"

puts Aws::VERSION

resource = Aws::S3::Resource.new(
  access_key_id: "abc",
  secret_access_key: "xyz",
  region: "eu-west-1"
)

puts resource.client.config.credentials.credentials.access_key_id
2.8.7
abc

@josueadelima
Copy link
Author

josueadelima commented Mar 19, 2017

Sorry, I had an error in my gem file with the aws-sdk, and I was using an old version, I cannot reproduce the error anymore, but it was:

NoMethodError: undefined method credentials for #<Aws::Credentials access_key_id

Thats how I noticed the word was repeated

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