Query tool restore connection fails
Please note that security bugs or issues should be reported to [email protected].
Describe the bug
The query tool is unable to restore the connection
To Reproduce
Steps to reproduce the behavior:
- Open the Query tool
- execute some queries
- Disconnect the server from the object explorer
- Try to execute a query on an already opened Query Tool
- It shows a connection dialog to create a new session
- Click on
Connectand check it shows an error in the Query toolMessagestab - Query tool unable to restore the connection
(Note: If the user connects to the server from
Object Explorethen it is able to restore the connection)
Expected behavior
connection to the server should be restored in a new session
Desktop (please complete the following information):
- OS: macOS (Ventura 13.3)
- Version: [e.g. 6.15]
- Mode: Both
@nikhil-mohite, if the connection is restored from the browser tree, it should re-connect as per our old behaviour, but it will not if the it's disconnected from the browser tree.
The original behaviour is fixed as per my comment. It will be not connected if it is disconnected from browser tree.
The scenarios that are fixed for query tool are,
- Server password->Saved->Maintenance DB->Execute query,Execute script, Explain, Explain analyze, Macro, Update connection, New connection, Open query tool in a new tab
- Server password->Not Saved->Maintenance DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
- Server password->Saved->Other DB->Execute query,Execute script, Explain, Explain analyze, Macro, Update connection, New connection, Open query tool in a new tab
- Server password->Not Saved->Other DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Tunnel password->Server password->Saved->Maintenance DB->Execute query,Execute script, Explain, Explain analyze, Macro, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Tunnel password->Server password->Not Saved->Maintenance DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Tunnel password->Server password->Saved->Other DB->Execute query,Execute script, Explain, Explain analyze, Macro, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Tunnel password->Server password->Not Saved->Other DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Identity file->Server password->Saved->Maintenance DB->Execute query,Execute script, Explain, Explain analyze, Macro, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Identity file->Server password->Not Saved->Maintenance DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Identity file->Server password->Saved->Other DB->Execute query,Execute script, Explain, Explain analyze, Macro, Update connection, New connection, Open query tool in a new tab
- SSH Tunnel->Identity file->Server password->Not Saved->Other DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
- Server password->Password file->Other DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
- Server password->Password file->Maintenance DB->Execute query,Execute script, Explain, Explain analyze, Update connection, New connection, Open query tool in a new tab
The scenarios that are fixed for view/edit data tool are, All the above scenarios with execute script button of View/Edit tool.
Tested on snapshot build and the issue is fixed.