-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
bug: Presigned URL failed on GET for downloading #10844
Comments
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide. |
Hello @cchentyro and thanks for your report! Could you please share how you are generated the pre-signed URL so that we can easily reproduce and fix this issue? |
After looking at your URL, it seems your query string parameter is double URL encoded: I believe the parameter should be the following: I've tried your format against AWS and it fails, AWS does not double-encode the <Error>
<Code>AuthorizationQueryParametersError</Code>
<Message>
Error parsing the X-Amz-Credential parameter; the Credential is mal-formed; expecting "<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request".
</Message>
<RequestId>GYD5Z0TSA3384VSS</RequestId>
<HostId>lJ3Qh5M4RlUiShRvfhL72xJqN+DOeceFsb8cb5w6GbSkhx9+LTkXBmxAj2/qJinKz6i+KgpHZnc=</HostId>
</Error> I'll open a PR to raise the same exception as AWS in the meantime. |
Hello 👋! It looks like this issue hasn’t been active in longer than two weeks. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Is there an existing issue for this?
Current Behavior
URL:
Error:
Expected Behavior
It should parse the region from the parameter.
How are you starting LocalStack?
Custom (please describe below)
Steps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)By TestContainer
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
Create bucket, upload and presigned url by aws java sdk
Environment
Anything else?
Guess maybe there is no url decode for those params?
The text was updated successfully, but these errors were encountered: