[pgAdmin4][Patch]: Do not decrypt the password when the password is 'None'

From: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch]: Do not decrypt the password when the password is 'None'
Date: 2017-12-22 06:32:13
Message-ID: CAKKotZQ2dPoTt7KLjXwKiP7bPtzqKvgN7nejCG0jw_CEYz_gMw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

PFA patch to fix the issue where we were getting exception ValueError: IV
must be 16 bytes long while decrypting the password.
RM#2765

Steps to re-produce:
1) Create new server using pgpass file, do not enter anything in password
field.
2) Connect to server & open query tool (to make one or more connection with
server)
3) Stop pgAdmin4 server from backend & start it again
4) Hard refresh the browser by removing the cache & cookies.
5) Expand the Server-Group in which you added that server, Check the
console you will see the same error, this happens when we try to
automatically restore the server connection while expanding the server
nodes and that server connection do not have any password stored.

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
RM_2765.diff text/plain 902 bytes

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Khushboo Vashi 2017-12-22 09:44:24 [pgAdmin4][Patch]: RM #2933 - Add support for transition tables in Postgres 10 triggers
Previous Message Chethana Kumar 2017-12-22 06:23:55 Re: [pgAdmin4][Patch]: Adding connection status in Query tool