-
Notifications
You must be signed in to change notification settings - Fork 910
CloudFrontUtilities is not including the original query params correctly when signing resource url #3655
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
Comments
Can confirm that this is an issue. |
It happens because |
Thank you everyone for reaching out, we'll work on a fix. |
The fix is available in SDK version |
|
…69c2aeef0 Pull request: release <- staging/9875d744-8bf5-4cf2-8323-c1c69c2aeef0
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When using the new CloudFrontUtilities class to sign resource urls, the query params of the original urls are dropped and
&
is incorrectly appended.Expected Behavior
Original query params should be kept like in v1 and
&
should be appended correctly.e.g.
https://google.com?a=b
->https://google.com?a=b&...
Current Behavior
signing
https://google.com?a=b
would give<host>&...
Reproduction Steps
Try include a url with query param in tests.
Possible Solution
Fix these lines:
aws-sdk-java-v2/services/cloudfront/src/main/java/software/amazon/awssdk/services/cloudfront/CloudFrontUtilities.java
Lines 148 to 149 in 71bf793
Additional Information/Context
No response
AWS Java SDK version used
2.18.33
JDK version used
11
Operating System and version
win 11
The text was updated successfully, but these errors were encountered: