Hide Forgot
Currently, if using "connect(user='user', password='PASS :')", psycopg2 module is not able to parse 'password' parameter correctly. Spaces and colons cause problems and to fix that - these symbols should be properly escaped (or whole password should be wrapped by ' symbol). Initially created based on discussion in bug #968532.
Created attachment 814886 [details] Proposed downstream fix. In the time 2.0.14 was released, the 'connect()' method was not wrapped by python function — it was direct 'C' plugin call. So the upstream patch (commit 625cc1b402b33) is not usable at all for RHEL6. Proposed patch escapes single quote characters inside parameter value of connect() method and wraps each parameter value by single quotes. This patch does not make sense to send (or consult with) upstream as they are too far from 2.0.14.
Created attachment 814888 [details] Proposed downstream fix. I have uploaded bad (upstream) fix, now it is correct.
Created attachment 814904 [details] Proposed downstream fix. Escape also backslashes.
Created attachment 814946 [details] exporting PSYCOPG2_RHEL_CONNECT_FIXUP=0 will opt-out this fix
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions