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 raw-path not being updated for virtual host style bucket addressing #913

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

skotambkar
Copy link
Contributor

@skotambkar skotambkar commented Nov 19, 2020

currently we update url path when we switch to virtual host style bucket addressing for s3. While modifying url.path, we do not modify url.rawpath. This leads to Go stdlib's url EscapePath func to drop the rawpath.

[x] This pr updates the customization to modify the rawpath as well to correct the behavior.
[x] Updated unit tests to assert character escaping in request path

Fixes #883

@skotambkar skotambkar merged commit 5c31ee3 into master Nov 19, 2020
@jasdel jasdel deleted the rawpath-processing branch November 25, 2020 17:53
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.

s3.GetObject returns a SignatureDoesNotMatch error
2 participants