Skip to content

Commit

Permalink
Fix issues more scenarios related to crypt key missing on backend ser…
Browse files Browse the repository at this point in the history
…ver restart.pgadmin-org#8065
  • Loading branch information
yogeshmahajan-1903 committed Nov 28, 2024
1 parent 9ef5a53 commit f7d9a85
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7d9a85

Please sign in to comment.