Fixed the Debugger issue introduced by security fixes.

pull/5349/head
Nikhil Mohite 2022-09-14 15:15:52 +05:30 committed by Akshay Joshi
parent 40e0175ee5
commit 0cb00c7b4f
3 changed files with 5 additions and 5 deletions

View File

@ -351,7 +351,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
api({ api({
url: baseUrl, url: baseUrl,
method: 'GET', method: 'POST',
}) })
.then(function (res) { .then(function (res) {
if (res.data.data.status) { if (res.data.data.status) {
@ -368,7 +368,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
api({ api({
url: baseUrl, url: baseUrl,
method: 'GET', method: 'POST',
}) })
.then(function (res) { .then(function (res) {
if (res.data.data.status) { if (res.data.data.status) {
@ -608,7 +608,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
api({ api({
url: base_url, url: base_url,
method: 'GET', method: 'POST',
}) })
.then(function () { .then(function () {
if (params.directDebugger.debug_type) { if (params.directDebugger.debug_type) {

View File

@ -275,7 +275,7 @@ class UserManagementSchema extends BaseUISchema {
{ {
id: 'refreshBrowserTree', visible: false, type: 'boolean', id: 'refreshBrowserTree', visible: false, type: 'boolean',
deps: ['userManagement'], depChange: ()=> { deps: ['userManagement'], depChange: ()=> {
return { refreshBrowserTree: this.changeOwnership } return { refreshBrowserTree: this.changeOwnership };
} }
} }
]; ];

View File

@ -262,7 +262,7 @@ describe('Debugger Component', () => {
it('DebuggerInit Indirect', () => { it('DebuggerInit Indirect', () => {
params.directDebugger.debug_type = 1; 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.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.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}]}}); 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}]}});