Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
AMQ 7.11.1.GA
-
False
-
None
-
False
-
Description
The wildcards are not working as expected when using Federation.
Consider the following configuration, having "test.#" as a wildcard
<federation name="to-upstream"user="admin"password="admin">
<upstream name="upstream-1">
<static-connectors>
<connector-ref>upstream-connector</connector-ref>
</static-connectors>
<policyref="test-address-federation"/>
</upstream>
<address-policyname="test-address-federation"auto-delete="true"auto-delete-delay="300000"auto-delete-message-count="-1"enable-divert-bindings="false"max-hops="1">
<include address-match="test.#"/>
</address-policy>
</federation>
When the downstream broker has an address "test.normal", a Federation link is created on the upstream broker for this address. When I send messages to the upstream broker, the downstream broker gets them as expected.
However, I also see a link created for the address "testing.normal" , and this also gets messages from the upstream broker, despite the "testing.normal" address does not comply with the wilcard "test.#"
$ upstream/bin/artemis queue stat --field ADDRESS --operation CONTAINS --value test
Connection brokerURL = tcp://localhost:62616
|NAME |ADDRESS |CONSUMER_COUNT|MESSAGE_COUNT|MESSAGES_ADDED|DELIVERING_COUNT|MESSAGES_ACKED|SCHEDULED_COUNT|ROUTING_TYPE|
|federated.to-upstream....|test.normal |1 |1 |1 |1 |0 |0 |MULTICAST |
|federated.to-upstream....|testing.normal|1 |1 |1 |1 |0 |0 |MULTICAST |