ARTEMIS-3217 unescape address name from JMX

This commit is contained in:
Justin Bertram 2021-03-31 21:08:46 -05:00 committed by Gary Tully
parent 3aa2f091bd
commit ad964b1bd8
1 changed files with 13 additions and 0 deletions

View File

@ -190,6 +190,7 @@ var Artemis;
{
address = address.substr(1,address.length -2);
}
address = unescape(address)
$scope.message = "Created queue " + queueName + " durable=" + durable + " filter=" + filter + " routing type=" + routingType + " max consumers=" + maxConsumers + " purge..=" + purgeWhenNoConsumers + " on address " + address;
if (routingType == "Multicast") {
Artemis.log.debug($scope.message);
@ -200,6 +201,18 @@ var Artemis;
}
}
};
// unescape name from JMX https://docs.oracle.com/en/java/javase/11/docs/api/java.management/javax/management/ObjectName.html#quote(java.lang.String)
function unescape(input) {
var result = input;
result = result.replace('\\"', '"');
result = result.replace("\\*", "*");
result = result.replace("\\?", "?");
result = result.replace("\\\\", "\\");
return result;
}
}
CreateQueueController.$inject = ['$scope', 'workspace', 'jolokia', 'localStorage'];