-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Trouble with presigned url #816
Comments
I can't recreate this issue in 2.0.42. Can you tell me a bit more about what you are trying to do? |
Our mobile app works with an API, the app request URL from the server and upload files on S3. So far it worked perfectly. |
Have you taken a look at Presigned Post? If you're doing this via any kind of form, that could be a better choice. In any case, I can't identify anything that has changed and I seem to be able to successfully run presigned requests. If you can isolate a small code example that breaks, that could help. |
We're not using any form, this is why we choose this approach in the first place. Here's a more detailed example of what we're doing:
Does it help anyhow? |
There was definitely a change to the pre-signed URL implementation were request headers were no-longer being hoisted to the query string. My understanding is that these values are ignored by Amazon S3 if they are sent in the querystring and not sent as request headers. The change was to be a bug-fix not move them to query params and leave them as headers when generating the signature for the pre-signed URLs. As a result of this, you must send those values as headers when you make the pre-signed request. I'm going to go back and verify this is correct and I'll update here with more information. |
Thanks for reporting the issue. This fix will go out with our next release. |
Hello,
I've been using the presigned url feature for a few month, I updated my gem from 2.0.30 to 2.0.42 and encountered a strange issue : the presigned urls were no longer valid.
Error message:
As you can see, the headers "x-amz-acl" & "x-amz-storage-class" are empty.
I rollbacked to the previous version (2.0.30) and everything was ok again.
Am I suppose to update something in my code before upgrading to 2.0.42?
Or is it an actual bug?
Thank you!
The text was updated successfully, but these errors were encountered: