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 issue with URL parsing error not being handled #9

Merged
merged 1 commit into from
May 18, 2020

Conversation

dedalusj
Copy link
Contributor

@dedalusj dedalusj commented May 6, 2020

The following fix an issue where invalid URLs that failed to parse was causing the transport to crash with a nil pointer crash.

I discovered the issue when using URLs like the following deb s3://access_key:secret/key@s3.amazonaws.com/some-bucket which fails to parse due to the slash in the secret key. Granted the secret key should have been URL encoded but the issue was hard to discover due to the nil pointer crash.

@dedalusj dedalusj marked this pull request as draft May 6, 2020 21:29
@dedalusj dedalusj marked this pull request as ready for review May 6, 2020 21:29
Copy link
Collaborator

@adamvduke adamvduke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM. Nice catch!

@adamvduke adamvduke merged commit 6292bd5 into google:master May 18, 2020
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.

2 participants