Fixed the Debugger issue introduced by security fixes.
parent
40e0175ee5
commit
0cb00c7b4f
|
@ -351,7 +351,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
|
|||
|
||||
api({
|
||||
url: baseUrl,
|
||||
method: 'GET',
|
||||
method: 'POST',
|
||||
})
|
||||
.then(function (res) {
|
||||
if (res.data.data.status) {
|
||||
|
@ -368,7 +368,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
|
|||
|
||||
api({
|
||||
url: baseUrl,
|
||||
method: 'GET',
|
||||
method: 'POST',
|
||||
})
|
||||
.then(function (res) {
|
||||
if (res.data.data.status) {
|
||||
|
@ -608,7 +608,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
|
|||
|
||||
api({
|
||||
url: base_url,
|
||||
method: 'GET',
|
||||
method: 'POST',
|
||||
})
|
||||
.then(function () {
|
||||
if (params.directDebugger.debug_type) {
|
||||
|
|
|
@ -275,7 +275,7 @@ class UserManagementSchema extends BaseUISchema {
|
|||
{
|
||||
id: 'refreshBrowserTree', visible: false, type: 'boolean',
|
||||
deps: ['userManagement'], depChange: ()=> {
|
||||
return { refreshBrowserTree: this.changeOwnership }
|
||||
return { refreshBrowserTree: this.changeOwnership };
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
@ -262,7 +262,7 @@ describe('Debugger Component', () => {
|
|||
|
||||
it('DebuggerInit Indirect', () => {
|
||||
params.directDebugger.debug_type = 1;
|
||||
networkMock.onGet(url_for('debugger.start_listener', {'trans_id': params.transId})).reply(200, {'success':1,'errormsg':'','info':'','result':null,'data':{'status':true,'result':2}});
|
||||
networkMock.onPost(url_for('debugger.start_listener', {'trans_id': params.transId})).reply(200, {'success':1,'errormsg':'','info':'','result':null,'data':{'status':true,'result':2}});
|
||||
networkMock.onGet(url_for('debugger.messages', {'trans_id': params.transId})).reply(200, {'success':1,'errormsg':'','info':'','result':null,'data':{'status':'Success','result':'10'}});
|
||||
networkMock.onGet(url_for('debugger.execute_query', {'trans_id': params.transId, 'query_type': 'get_stack_info'})).reply(200, {'success':1,'errormsg':'','info':'','result':null,'data':{'status':'Success','result':[{'level':0,'targetname':'_test()','func':3138947,'linenumber':9,'args':''}]}});
|
||||
networkMock.onGet(url_for('debugger.poll_result', {'trans_id': params.transId})).reply(200, {'success':0,'errormsg':'','info':'','result':null,'data':{'status':'Success','result':[{'pldbg_wait_for_target':28298}]}});
|
||||
|
|
Loading…
Reference in New Issue