Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
qpid-java-6.0.5
-
qpid-jms-discovery-0.9.0.jar
qpid-jms-client-0.9.0.jar
proton-j-0.12.1.jar
Description
I added to qpid config.json a pattern matching alias so that any request to connect to a host for the mapped port/address also matches. With the "simplest" change ,it will simply match all provided host names to the default virtual host.
The port section in config.json is as follows:
"ports" : [ {
"id" : "0425f08c-0b3d-4e3e-8560-82eb6d458099",
"name" : "AMQP",
"port" : "${qpid.amqp_port}",
"authenticationProvider" : "passwordFile",
"virtualhostaliases" : [
,
{ "id" : "a9aa5b74-b678-4571-a170-66078b08ea01", "name" : "hostnameAlias", "type" : "hostnameAlias" },
{ "id" : "4a39dc5a-d97b-4467-afd4-7a4f9f6c18d9", "name" : "nameAlias", "type" : "nameAlias" },
{ "name" : "patternAlias", "type" : "patternMatchingAlias", "pattern" : "*" } ]
}, {
"id" : "c8451811-143d-47c9-8a86-5e939c506dbc",
"name" : "HTTP",
"port" : "${qpid.http_port}",
"authenticationProvider" : "passwordFile",
"protocols" : [ "HTTP" ]
} ],
But when cilent connected ,the error occurred like this:
Caught exception, exiting.
javax.jms.JMSException: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*
^ [condition = amqp:connection:forced]
at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:148)
at org.apache.qpid.jms.provider.amqp.AmqpSupport.convertToException(AmqpSupport.java:103)
Attachments
Issue Links
- is related to
-
QPID-7513 [Java Broker] If no virtualHostNode is provided, a PatternMatchingAlias should return the default virtual host node
- Closed