mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix issues more scenarios related to crypt key missing on backend server restart. #8065
This commit is contained in:
parent
fac1857579
commit
190574b3af
@ -300,7 +300,17 @@ export class ResultSetUtils {
|
||||
}, ()=>{
|
||||
/*This is intentional (SonarQube)*/
|
||||
});
|
||||
} else {
|
||||
}else if (e?.response?.data.info == 'CRYPTKEY_MISSING'){
|
||||
let pgBrowser = window.pgAdmin.Browser;
|
||||
pgBrowser.set_master_password('', async (passwordData)=>{
|
||||
await this.connectServer(this.queryToolCtx.params.sid, this.queryToolCtx.params.user, passwordData, async ()=>{
|
||||
await this.eventBus.fireEvent(QUERY_TOOL_EVENTS.REINIT_QT_CONNECTION, '', explainObject, macroSQL, flags.executeCursor, true);
|
||||
});
|
||||
}, ()=> {
|
||||
/*This is intentional (SonarQube)*/
|
||||
});
|
||||
return;
|
||||
}else {
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.EXECUTION_END);
|
||||
this.eventBus.fireEvent(QUERY_TOOL_EVENTS.HANDLE_API_ERROR,
|
||||
e,
|
||||
|
Loading…
Reference in New Issue
Block a user