Skip to content
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

Fix URL encoding bug around AWS v4 auth [JIRA: RCS-203] #1141

Merged
merged 1 commit into from May 1, 2015

Conversation

shino
Copy link
Contributor

@shino shino commented May 1, 2015

AWS v4 auth defined URL encoding algorithm that is used for
generating signature. Mochiweb's utility function convert
space (" ") to plus ("+") but AWS spec says it should be
percent encoded. i.e. "%20".

This commit fixes the encoding bug for resource (URL path) and
query parameters.

This PR only affects AWS v4 authentication path that is still preliminary support.

cf.
Authenticating Requests by Using the Authorization Header
(Compute Checksum of the Entire Payload Prior to Transmission)

AWS v4 auth defined URL encoding algorithm that is used for
generating signature. Mochiweb's utility function convert
space (" ") to plus ("+") but AWS spec says it should be
percent encoded. i.e. "%20".

This commit fixes the encoding bug for resource (URL path) and
query parameters.

cf.
Authenticating Requests by Using the Authorization Header
  (Compute Checksum of the Entire Payload Prior to Transmission)
  - Signature Version 4 - Amazon Simple Storage Service
  http://docs.aws.amazon.com/ja_jp/AmazonS3/latest/API/sig-v4-header-based-auth.html
@shino shino added the Bug label May 1, 2015
@shino shino added this to the 2.0.1 milestone May 1, 2015
borshop added a commit that referenced this pull request May 1, 2015
Fix URL encoding bug around AWS v4 auth

Reviewed-by: kuenishi
@kuenishi
Copy link
Contributor

kuenishi commented May 1, 2015

@borshop merge

borshop added a commit that referenced this pull request May 1, 2015
Fix URL encoding bug around AWS v4 auth

Reviewed-by: kuenishi
@kuenishi
Copy link
Contributor

kuenishi commented May 1, 2015

@borshop: retry

@borshop borshop merged commit b66fdc9 into 2.0 May 1, 2015
@kuenishi kuenishi deleted the bugfix/v4-encoding-percent branch May 1, 2015 13:55
@Basho-JIRA Basho-JIRA changed the title Fix URL encoding bug around AWS v4 auth Fix URL encoding bug around AWS v4 auth [JIRA: RCS-203] May 20, 2015
@Basho-JIRA
Copy link

No release note needed as AWS v4 auth is not supported in 2.0 nor 2.1.

_[posted via JIRA by Kota Uenishi]_

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

Successfully merging this pull request may close these issues.

None yet

4 participants