-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix URL encoding bug around AWS v4 auth
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
- Loading branch information
Showing
2 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from kuenishi
at b66fdc9
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging basho/riak_cs/bugfix/v4-encoding-percent = b66fdc9 into borshop-integration-1141-bugfix/v4-encoding-percent
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basho/riak_cs/bugfix/v4-encoding-percent = b66fdc9 merged ok, testing candidate = dd1c5a8
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.bos1/builders/test-riak_cs/builds/1133
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge sha dd1c5a8 is stale.
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging basho/riak_cs/bugfix/v4-encoding-percent = b66fdc9 into borshop-integration-1141-bugfix/v4-encoding-percent
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basho/riak_cs/bugfix/v4-encoding-percent = b66fdc9 merged ok, testing candidate = 0d75a99
b66fdc9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding 2.0 to borshop-integration-1141-bugfix/v4-encoding-percent = 0d75a99