Trac psycopg2 connection string escape character

329 views
Skip to first unread message

Mike Dewhirst

unread,
Jun 2, 2022, 3:04:32 AM6/2/22
to Trac Users
I'm trying to install Trac 1.5.3 on Ubuntu 20.04 LTS server using
PostgreSQL/psycopg2.

My password contains '@' twice and the installer barfs at that.

I've tried all the quote characters known to me (``, `', '', "", ||)
around the password and also tried backslashing the @ symbols and
doubling them - all to no avail.

How can I use my existing database password?

Thanks

Mike



OpenPGP_signature

Jun Omae

unread,
Jun 2, 2022, 3:13:19 AM6/2/22
to trac-...@googlegroups.com
See https://trac.edgewall.org/wiki/TracEnvironment#DatabaseConnectionStrings

The page says: Note that if the username or password of the connection
string (if applicable) contains the :, / or @ characters, they need to
be URL encoded.

--
Jun Omae <jun...@gmail.com> (大前 潤)

Mike Dewhirst

unread,
Jun 2, 2022, 3:20:17 AM6/2/22
to trac-...@googlegroups.com
Many thanks - that worked :-)

Mike

>


--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.

OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages