Skip to content

fix: net/url in newer versions of Go (>1.9.4) reject with "invalid userinfo" when there are special characters in the connection string#3

Open
rickmeasham-eh wants to merge 1 commit into
jousby:mainfrom
rickmeasham-eh:URI-encoding-connection-string
Open

fix: net/url in newer versions of Go (>1.9.4) reject with "invalid userinfo" when there are special characters in the connection string#3
rickmeasham-eh wants to merge 1 commit into
jousby:mainfrom
rickmeasham-eh:URI-encoding-connection-string

Conversation

@rickmeasham-eh
Copy link
Copy Markdown

Per this patch to go, when we have an auto-generated password that contains special characters, net/url throws an invalid userinfo error.

This PR encodes the username and password in the connection string.

It deliberately does not bother with the host, port or dbName as all three already have limited character sets.

…o" when there are special characters in the connection string
@rickmeasham-eh rickmeasham-eh changed the title net/url in newer versions of Go (>1.9.4) reject with "invalid userinfo" when there are special characters in the connection string fix: net/url in newer versions of Go (>1.9.4) reject with "invalid userinfo" when there are special characters in the connection string Jun 24, 2024
@rickmeasham-eh
Copy link
Copy Markdown
Author

Hi @jousby, I'm wondering if there's any chance of getting this PR reviewed and hopefully merged sometime soon?

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.

1 participant