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

Error uploading to S3 if s3.signature.version=AWS2: "Failure to read attributes of <bucketname>" #9793

Closed
cyberduck opened this issue Dec 22, 2016 · 4 comments
Assignees
Labels
bug fixed s3 AWS S3 Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

919af4b created the issue

In order to generate signed urls that last longer than a month I have a user preference setting like this in my user.config file:

      <setting name="s3.signature.version" value="AWS2" />

This works great for generating signed urls, but when I try to upload a file I get an error. The Transfer window opens and authenticates and then I get a popup message "Failure to read attributes of .", "The request signature we calculated does not match the signature you provided. Check your key and signing method. Please contact your web hosting service provider for assistance."

Nothing appears in the Log Drawer for this upload/error.

If I close Cyberduck, remove the setting from my user.config, reopen then I'm able to upload the file just fine. I can then only generate urls valid up to 1 month in the future so I need to close, add the setting back, reopen to generate longer lasting urls.

Version is 5.2.3 (not available in dropdown), build 21496.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Possibly related to #9747.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Milestone renamed

@cyberduck
Copy link
Collaborator Author

@dkocher commented

We can reproduce the issue.

GET /?accelerate HTTP/1.1
Date: Wed, 11 Jan 2017 11:39:35 GMT
x-amz-request-payer: requester
Authorization: ********
Host: test-us-east-1-mountainduck.s3.amazonaws.com:443
Connection: Keep-Alive
User-Agent: Cyberduck/SNAPSHOT.SNAPSHOT (Mac OS X/10.12.2) (x86_64)
HTTP/1.1 403 Forbidden
x-amz-request-id: 4069E09F824933FE
x-amz-id-2: bsKSX85YO3O8hrNmauaLZV5TXouC5suydNU5uE6I6qdemo9D5bZe4HqIx8YbxdnrDGbzPTQz130=
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Wed, 11 Jan 2017 11:39:35 GMT
Server: AmazonS3

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 94ea98a.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed s3 AWS S3 Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants