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
Deduplicate slashes for sigv4 signature #364
Deduplicate slashes for sigv4 signature #364
Conversation
Can we have a test? |
Did you mean a test like this? It's failing currently, because it's not being escaped. |
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.
LGTM
Were the tests not run in CI, because I expected the test I added to fail 🤔 |
Yes, we run a |
Looks like the Fixed in #365. |
Ok, a rebase here will make the tests run correctly. |
Signed-off-by: Ujjwal Goyal <importujjwal@gmail.com>
sigv4 package already calls EscapeURL, the proper fix would be to use path.Clean. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
8a6fba2
to
f1cb4b8
Compare
It turns out that the underlying API is already calling EscapePath. The fix for the user's issue is to use path.Clean. I have updated the pull request to reflect this and added a test. WDYT @importhuman ? |
LGTM @roidelapluie |
Thanks!!! |
Signed-off-by: Ujjwal Goyal importujjwal@gmail.com
For issue 10200 on the prometheus repo.
Not sure if this is all that is required.