encode_uri/1 should html encode with uppercase to handle special chars such as +#74
Merged
onno-vos-dev merged 1 commit intoaws-beam:masterfrom Feb 14, 2022
onno-vos-dev:encoding-should-be-uppercase-as-base16-does-so
Merged
encode_uri/1 should html encode with uppercase to handle special chars such as +#74onno-vos-dev merged 1 commit intoaws-beam:masterfrom onno-vos-dev:encoding-should-be-uppercase-as-base16-does-so
onno-vos-dev merged 1 commit intoaws-beam:masterfrom
onno-vos-dev:encoding-should-be-uppercase-as-base16-does-so
Conversation
Member
Author
|
@philss Sorry for the mess but it's really annoying to have all tests towards S3Mock from Adobe pass whereas things end up exploding when moving to my staging environment 😢 Hence, I tested this in staging towards AWS itself and now every bit of weirdness seems to be resolved. 🤞 |
…s such as + - Preserve old behavior for aws_util:base16/1
|
here's the link to the object key names documentation: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html |
robertoaloi
approved these changes
Feb 14, 2022
Contributor
|
@onno-vos-dev no problem, and thanks for the PR! 💜 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
encode_uri/1 should html encode with uppercase to handle special chars such as +
This is essentially the same code as can be seen in
aws_signature: aws_signature_utils.erl#L44Certain special characters such as
+would still lead to SignatureDoesNotMatch errors even after #73 since the signature would uppercase encoded characters whereas the encoded uri would not. Leading to SignatureDoesNotMatch errors since the signature would be signed with an uppercase html encoded char whereas the url that would be called would have the lowercased version.Added a unit test with the most screwed up filename possible: