ARTEMIS-1744 fix removing addresses and queues with '*' or '?' in their names via hawtio console
This commit is contained in:
parent
edd25d7c8d
commit
49bb442499
|
@ -90,6 +90,7 @@ var ARTEMIS = (function(ARTEMIS) {
|
|||
{
|
||||
name = name.substr(1,name.length -2);
|
||||
}
|
||||
name = ARTEMISService.artemisConsole.ownUnescape(name);
|
||||
ARTEMIS.log.info(name);
|
||||
var operation;
|
||||
$scope.message = "Deleted address " + name;
|
||||
|
@ -100,7 +101,7 @@ var ARTEMIS = (function(ARTEMIS) {
|
|||
$scope.name = function () {
|
||||
var selection = workspace.selection;
|
||||
if (selection) {
|
||||
return selection.title;
|
||||
return ARTEMISService.artemisConsole.ownUnescape(selection.title);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
|
@ -103,6 +103,7 @@ var ARTEMIS = (function(ARTEMIS) {
|
|||
var domain = selection.domain;
|
||||
var name = entries["Destination"] || entries["destinationName"] || selection.title;
|
||||
name = name.replace(/['"]+/g, '');
|
||||
name = ARTEMISService.artemisConsole.ownUnescape(name);
|
||||
ARTEMIS.log.info(name);
|
||||
var operation;
|
||||
if (isQueue) {
|
||||
|
@ -133,7 +134,7 @@ var ARTEMIS = (function(ARTEMIS) {
|
|||
$scope.name = function () {
|
||||
var selection = workspace.selection;
|
||||
if (selection) {
|
||||
return selection.title;
|
||||
return ARTEMISService.artemisConsole.ownUnescape(selection.title);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
|
@ -70,6 +70,11 @@ function ArtemisConsole() {
|
|||
this.getRemoteBrokers = function (mbean, jolokia, method) {
|
||||
jolokia.request({ type: 'exec', mbean: mbean, operation: 'listNetworkTopology()' }, method);
|
||||
};
|
||||
|
||||
this.ownUnescape = function (name) {
|
||||
//simple return unescape(name); does not work for this :(
|
||||
return name.replace(/\\\\/g, "\\").replace(/\\\*/g, "*").replace(/\\\?/g, "?");
|
||||
};
|
||||
}
|
||||
|
||||
function getServerAttributes() {
|
||||
|
|
Loading…
Reference in New Issue