Skip to content

parsing passwords fails on % #1243

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

Closed
robert-sjoblom opened this issue Mar 10, 2025 · 1 comment
Closed

parsing passwords fails on % #1243

robert-sjoblom opened this issue Mar 10, 2025 · 1 comment

Comments

@robert-sjoblom
Copy link

Describe the Bug

This is related to #1242, where the password is shown in the error message.

Steps to Reproduce

Connect to a database with a password containing %:

failed to create new migrations: failed to open database: parse "pgx://postgres:foo%!h(bool=true)ejsan2%!t(MISSING)jotjo@localhost:5432/postgres?sslmode=disable&application_name=&statement_cache_mode=describe&x-lock-strategy=table&x-multi-statement=%!t(MISSING)": invalid URL escape "%!h"

password: foo%hejsan2%tjotjo

Expected Behavior
A properly parsed password

Migrate Version
v4.18.2

@dhui
Copy link
Member

dhui commented Apr 17, 2025

@dhui dhui closed this as completed Apr 17, 2025
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

No branches or pull requests

2 participants