From 3f67f512ecc94c64123480b237d3819c914048c3 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 26 Jul 2021 11:49:48 +0530 Subject: [PATCH] Fixed incorrect binary path issue when the user deletes the binary path from the preferences. Fixes #6619 --- docs/en_US/release_notes_5_6.rst | 1 + web/pgadmin/browser/server_groups/servers/types.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_5_6.rst b/docs/en_US/release_notes_5_6.rst index 59eadcce6..91fafb0a8 100644 --- a/docs/en_US/release_notes_5_6.rst +++ b/docs/en_US/release_notes_5_6.rst @@ -22,3 +22,4 @@ Bug fixes | `Issue #6448 `_ - Fixed an issue in the search object when searching in 'all types' or 'subscription' if the user doesn't have access to the subscription. | `Issue #6574 `_ - Fixed an issue where paste is not working through Right-Click option on PSQL. | `Issue #6580 `_ - Fixed TypeError 'NoneType' object is not sub scriptable. +| `Issue #6619 `_ - Fixed incorrect binary path issue when the user deletes the binary path from the preferences. diff --git a/web/pgadmin/browser/server_groups/servers/types.py b/web/pgadmin/browser/server_groups/servers/types.py index 00243ec36..7fc468fb5 100644 --- a/web/pgadmin/browser/server_groups/servers/types.py +++ b/web/pgadmin/browser/server_groups/servers/types.py @@ -192,7 +192,8 @@ class ServerType(object): for bin_path in bin_path_json: if int(bin_path['version']) <= sverison < \ int(bin_path['next_major_version']) and \ - bin_path['binaryPath'] is not None: + bin_path['binaryPath'] is not None and \ + bin_path['binaryPath'].strip() != '': return bin_path['binaryPath'] if bin_path['isDefault']: