-
Notifications
You must be signed in to change notification settings - Fork 94
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
Multipart upload fails (AccessDenied) when using Nodejs aws-sdk client with v2 signature [JIRA: RCS-380] #1327
Comments
I managed to get the upload to work, switching to AWS signature v4 on the client and riak-cs. Sort of.
I get the same behavior wether using s3cmd or aws-sdk, so it's definitely a problem on riak-cs' end. What could cause such a behavior ? Is there anything in the conf I should check ? |
I was able to get the upload to work as expected, rolling back I'm guessing the part that could be problematic is the following:
|
Riak CS' v4 auth support is half-baked and not mature. HTH. |
As for Thanks for your effort to trim down the issue between 2.1.0 and 2.1.1. There are several commits those are not listed in the changelog. Just my wild guess, the commit [1] between these releases may be the cause of AccessDenied (URL encoding of query params are very subtle in v2 scheme). |
Ok thanks for these replies. I will try your fix once I have time. It seems to be working fine right now with v4 signature so I'm not in a rush anymore. The problem from v2.1.0 to 2.1.1 is not the access denied thing. It's the body content that is saved to the file with the HTTP header in it. |
Maybe I should open an other issue for the body content problem, so that there is no mixup ? |
I'm having trouble uploading files when using aws-sdk (https://github.com/aws/aws-sdk-js).
Their sdk provides an
upload
method that handles uploads. With small files, I have no problem, since it uses theputObject
method. But with bigger files, it uses the multipart upload, and I get an AccessDenied response on the first part upload.I looked at the access logs :
POST
request that succeeds (the multipart upload creation)PUT
request that fails (403 return code)DELETE
request (the multipart upload abort)When uploading a file with s3cmd, I have no problem, and in the logs, I see more or less the same, except the
PUT
requests succeed and return 200.The only difference I see there is the "aws-sdk-nodejs/2.7.7 linux/v6.9.1" in the requests made from aws-sdk, but I'm not sure what this corresponds to.
Is there any way to have more information in the access logs ? Know why the access was denied ?
The text was updated successfully, but these errors were encountered: