Skip to content

http_uri:encode/1 does not handle paths containing () which the encoding from aws-signature does#73

Merged
philss merged 1 commit intoaws-beam:masterfrom
onno-vos-dev:fix-encoding-of-special-chars-better-than-http_uri-encode
Feb 13, 2022
Merged

http_uri:encode/1 does not handle paths containing () which the encoding from aws-signature does#73
philss merged 1 commit intoaws-beam:masterfrom
onno-vos-dev:fix-encoding-of-special-chars-better-than-http_uri-encode

Conversation

@onno-vos-dev
Copy link
Copy Markdown
Member

@onno-vos-dev onno-vos-dev commented Feb 12, 2022

This is a tricky one since s3mock does not fail the request with SignatureDoesNotMatch error while AWS itself does fail. (Will file a bug report there)

The encoding has been taken straight from: aws_signature_utils.erl#L93 which I intend to work on as part of #63 which would have prevented this bug from happening 😞

Before this change a request as below will lead to SignatureDoesNotMatch error, after it won't and files can be written, read, listed and deleted as per usual.

…ing from aws-signature does

- Use encoding as defined in aws_sgignature_utils:uri_encode_path/1
Copy link
Copy Markdown
Contributor

@philss philss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

Thank you! 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants