Open benjamin-kirkbride opened 2 years ago
I had never heard that spaces were allowed in passwords!
Technically, however, this is a bug in pgdbconn
rather than Pyrseas. It doesn't escape any of the parameters. Which brings me to another issue of moving forward with Pyrseas. Way back when, I thought that having pgdbconn as a separate repo was a good idea, because eventually (if a concurrent user app was to be supported), we'd need more than simple connection management. Currently, I think if Pyrseas is to move forward, on Python, pgdbconn ought to be folded back in.
How to reproduce:
Example:
As you can see from the last line, the password is not properly escaped.
If I had to guess this could be reproduced even without actually even configuring a PG DB with a password with spaces.
I have confirmed that everything works if the spaces are removed from the password.