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

aws/signer/v4: Fix panic handling of endpoint URL without schemes #1754

Merged
merged 1 commit into from Aug 5, 2022

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Jul 1, 2022

Fixes panic in SDK's handling of endpoint URLs with ports by correcting how URL path is parsed from opaque URLs.

Fixes #1294

Fixes aws#1294 by correcting how GetURIPath parses the Opaque field
of a url.URL value.

Adds test cases for GetURIPath to validate its behavior.
@jasdel jasdel merged commit 2e91bf1 into aws:main Aug 5, 2022
@jasdel jasdel deleted the fixup/GetURIPathOpaque branch August 5, 2022 19:33
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.

panic: runtime error: slice bounds out of range [3:1] in GetURIPath
2 participants