mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Fix connection restoration issue when pgAdmin server is restarted and the page is refreshed. Fixes #4357
This commit is contained in:
parent
04328b76ba
commit
82bd94e696
@ -26,4 +26,5 @@ Bug fixes
|
||||
| `Bug #4320 <https://redmine.postgresql.org/issues/4320>`_ - Fix issue where SSH tunnel connection using password is failing, it's regression of Master Password.
|
||||
| `Bug #4329 <https://redmine.postgresql.org/issues/4329>`_ - Fix an initialisation error when two functions with parameters are debugged in parallel.
|
||||
| `Bug #4343 <https://redmine.postgresql.org/issues/4343>`_ - Fix issue where property dialog of column should open properly for EPAS v12.
|
||||
| `Bug #4350 <https://redmine.postgresql.org/issues/4350>`_ - Ensure we include the CSRF token when uploading files.
|
||||
| `Bug #4350 <https://redmine.postgresql.org/issues/4350>`_ - Ensure we include the CSRF token when uploading files.
|
||||
| `Bug #4357 <https://redmine.postgresql.org/issues/4357>`_ - Fix connection restoration issue when pgAdmin server is restarted and the page is refreshed.
|
@ -84,10 +84,11 @@ class Driver(BaseDriver):
|
||||
if '__pgsql_server_managers' in session:
|
||||
session_managers = session['__pgsql_server_managers'].copy()
|
||||
|
||||
manager = managers[str(sid)] = ServerManager(server_data)
|
||||
if sid in session_managers:
|
||||
manager._restore(session_managers[sid])
|
||||
manager.update_session()
|
||||
for server in Server.query.filter_by(user_id=current_user.id):
|
||||
manager = managers[str(server.id)] = ServerManager(server)
|
||||
if server.id in session_managers:
|
||||
manager._restore(session_managers[server.id])
|
||||
manager.update_session()
|
||||
else:
|
||||
managers = self.managers[session.sid]
|
||||
if str(sid) in managers:
|
||||
|
Loading…
Reference in New Issue
Block a user