From a85d907351aecb417f1dfb201e3d9e5aab19e388 Mon Sep 17 00:00:00 2001 From: Pravesh Sharma Date: Mon, 1 Apr 2024 16:57:47 +0530 Subject: [PATCH] Fixed an issue where user was unable to share a newly registered server. #7111 * Fixed an issue where the clear SSH tunnel password option was disabled in desktop mode. --- web/pgadmin/browser/server_groups/servers/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/browser/server_groups/servers/__init__.py b/web/pgadmin/browser/server_groups/servers/__init__.py index 2d685ed59..05c93a89d 100644 --- a/web/pgadmin/browser/server_groups/servers/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/__init__.py @@ -1253,6 +1253,7 @@ class ServerNode(PGChildNodeView): user = None manager = None replication_type = None + tunnel_password_saved = False if 'connect_now' in data and data['connect_now']: manager = get_driver(PG_DEFAULT_DRIVER).connection_manager( @@ -1329,6 +1330,7 @@ class ServerNode(PGChildNodeView): KEY_RING_TUNNEL_FORMAT.format(server.name, server.id), tunnel_password) + tunnel_password_saved = True replication_type = get_replication_type(conn, manager.version) @@ -1357,7 +1359,8 @@ class ServerNode(PGChildNodeView): gss_authenticated=manager.gss_authenticated if manager and manager.gss_authenticated else False, is_password_saved=bool(server.save_password), - is_tunnel_password_saved=bool(server.tunnel_password) + is_tunnel_password_saved=tunnel_password_saved, + user_id=server.user_id ) )