You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2021/04/01 11:21:58 UTC
[activemq-artemis] branch master updated: ARTEMIS-3217 unescape
address name from JMX
This is an automated email from the ASF dual-hosted git repository.
gtully pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/master by this push:
new ad964b1 ARTEMIS-3217 unescape address name from JMX
ad964b1 is described below
commit ad964b1bd8c9f31fe48e7f7eb2acbd0ac123b765
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Wed Mar 31 21:08:46 2021 -0500
ARTEMIS-3217 unescape address name from JMX
---
.../src/main/webapp/plugin/js/components/createQueue.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/createQueue.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/createQueue.js
index cb19cd8..363f04d 100644
--- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/createQueue.js
+++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/createQueue.js
@@ -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'];