X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FtopologyView%2FtopologySource.js;h=a02c56e5de0632afb18acd22f2bed3f429a7728c;hp=b570082ec642070e3a37277f9b9250a06b97c649;hb=03156e335275de1dafbc2a816e98006afdf249bf;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/plugins/launchpad/src/topologyView/topologySource.js b/skyquake/plugins/launchpad/src/topologyView/topologySource.js index b570082ec..a02c56e5d 100644 --- a/skyquake/plugins/launchpad/src/topologyView/topologySource.js +++ b/skyquake/plugins/launchpad/src/topologyView/topologySource.js @@ -42,11 +42,11 @@ export default { return resolve(false); } $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { - url: '/launchpad/api/nsr/' + id + '/compute-topology?api_server=' + API_SERVER + url: '/launchpad/api/nsr/' + encodeURIComponent(id) + '/compute-topology?api_server=' + API_SERVER }, success: function(data, textStatus, jqXHR) { Utils.checkAndResolveSocketRequest(data, resolve, reject); @@ -68,7 +68,7 @@ export default { id = 0; return new Promise(function (resolve, reject) { $.ajax({ - url: '/launchpad/api/nsr/' + id + '/compute-topology?api_server=' + API_SERVER, + url: '/launchpad/api/nsr/' + encodeURIComponent(id) + '/compute-topology?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, contentType: "application/json", @@ -95,7 +95,7 @@ export default { remote: function(state, vnfrID) { return new Promise(function(resolve, reject) { $.ajax({ - url: 'passthrough/data/api/operational/vnfr-catalog/vnfr/' + vnfrID + '?api_server=' + API_SERVER, + url: 'passthrough/data/api/operational/vnfr-catalog/vnfr/' + encodeURIComponent(vnfrID) + '?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, success: function(data) { @@ -114,7 +114,7 @@ export default { remote: function(state, nsrID) { return new Promise(function(resolve, reject) { $.ajax({ - url: 'passthrough/data/api/operational/ns-instance-opdata/nsr/' + nsrID + '?api_server=' + API_SERVER, + url: 'passthrough/data/api/operational/ns-instance-opdata/nsr/' + encodeURIComponent(nsrID) + '?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, success: function(data) { @@ -133,7 +133,7 @@ export default { remote: function(state, vdurID, vnfrID) { return new Promise(function(resolve, reject) { $.ajax({ - url: 'passthrough/data/api/operational/vnfr-catalog/vnfr/' + vnfrID + '/vdur/' + vdurID + '?api_server=' + API_SERVER, + url: 'passthrough/data/api/operational/vnfr-catalog/vnfr/' + encodeURIComponent(vnfrID) + '/vdur/' + encodeURIComponent(vdurID) + '?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, success: function(data) {