Skip to content

Encode path in AWS V4 signing requests#194

Merged
polac24 merged 1 commit intospotify:masterfrom
polac24:space-aws
Apr 3, 2023
Merged

Encode path in AWS V4 signing requests#194
polac24 merged 1 commit intospotify:masterfrom
polac24:space-aws

Conversation

@polac24
Copy link
Copy Markdown
Collaborator

@polac24 polac24 commented Apr 1, 2023

As the doc says, the path should be URL encoded

CanonicalUri – The URI-encoded version of the absolute path component URL (everything between the host and the question mark character (?) that starts the query string parameters). If the absolute path is empty, use a forward slash character (/).

This PR ensures we escape that - it might happen if a target or Configuration has e.g. whitespace.

Fixes #192

@polac24 polac24 merged commit 600310f into spotify:master Apr 3, 2023
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.

AWS S3 API Signature V4 verifaction fail

2 participants