mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #3] Special character "@" interpretation within the database connection string #1
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GhaithKhmili on GitHub (Jul 26, 2024).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/3
As my first issue report in this repo, I would like to congratulate you for the handy tool @eduardolat .
I've been playing with the tool in the last day in which I was able to integrate MinIO (latest) with container volumes mapped to my local storage and a custom bucket region.
Issue :
So far so good up to this moments yet I came across an issue with database passwords that contain the special character "@" within.
How to reproduce :
Use a database password containing an "@" character. Example : postgresql://username:p@ssword@hostname/database
Workaround :
A colleague of mine @scratchskinned succeeded to overcome the issue by implementing URL percent encoding and passing the character @ as %40.
@eduardolat commented on GitHub (Jul 26, 2024):
@GhaithKhmili Thanks a lot for your comment, I hope you are enjoying the tool as much as I am.
Regarding your problem you are totally correct, according to the PostgreSQL documentation it works like this:
This is how PostgreSQL works, I think it is outside the scope of PG Back Web, so it would be a bit irresponsible to alter the connection strings provided by the people who use the tool.
Rather, it is the user's responsibility to provide a valid connection string to the tool, which you can encode as you are already doing. You can also change your database password.
References: