diff options
| author | Robert Gemmell <robbie@apache.org> | 2011-03-01 09:34:53 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2011-03-01 09:34:53 +0000 |
| commit | 7266a03b8877a7e8bdfb9929e95f28292fedc3df (patch) | |
| tree | 00fc18f553dfc0d18b3a4d53fea87a45614bfe28 /java/systests | |
| parent | 5b210587fe07a9eab79298f0429b865ab19a5462 (diff) | |
| download | qpid-python-7266a03b8877a7e8bdfb9929e95f28292fedc3df.tar.gz | |
QPID-3090: quote the MBean ObjectName key values for the names of Queues, Connections, Exchanges, and VirtualHosts instead of just remapping characters.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1075744 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/systests')
| -rw-r--r-- | java/systests/src/main/java/org/apache/qpid/test/utils/JMXTestUtils.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/test/utils/JMXTestUtils.java b/java/systests/src/main/java/org/apache/qpid/test/utils/JMXTestUtils.java index ff80c91fac..3fece2130a 100644 --- a/java/systests/src/main/java/org/apache/qpid/test/utils/JMXTestUtils.java +++ b/java/systests/src/main/java/org/apache/qpid/test/utils/JMXTestUtils.java @@ -232,7 +232,8 @@ public class JMXTestUtils { // Get the name of the test manager AllObjects allObject = new AllObjects(_mbsc); - allObject.querystring = "org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=" + vhostName + ",*"; + allObject.querystring = "org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=" + + ObjectName.quote(vhostName) + ",*"; Set<ObjectName> objectNames = allObject.returnObjects(); @@ -259,7 +260,9 @@ public class JMXTestUtils { // Get the name of the test manager AllObjects allObject = new AllObjects(_mbsc); - allObject.querystring = "org.apache.qpid:type=VirtualHost.Queue,VirtualHost=" + virtualHostName + ",name=" + queue + ",*"; + allObject.querystring = "org.apache.qpid:type=VirtualHost.Queue,VirtualHost=" + + ObjectName.quote(virtualHostName) + ",name=" + + ObjectName.quote(queue) + ",*"; Set<ObjectName> objectNames = allObject.returnObjects(); @@ -287,7 +290,9 @@ public class JMXTestUtils { // Get the name of the test manager AllObjects allObject = new AllObjects(_mbsc); - allObject.querystring = "org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=" + virtualHostName + ",name=" + exchange + ",*"; + allObject.querystring = "org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=" + + ObjectName.quote(virtualHostName) + ",name=" + + ObjectName.quote(exchange) + ",*"; Set<ObjectName> objectNames = allObject.returnObjects(); |
