[
https://issues.apache.org/jira/browse/ARTEMIS-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16328938#comment-16328938
]
ASF GitHub Bot commented on ARTEMIS-1612:
-----------------------------------------
Github user clebertsuconic commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1782#discussion_r162100927
--- Diff:
artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java
---
@@ -892,7 +892,7 @@ public MessageReference reroute(final Message message,
final Queue queue, final
// as described on https://issues.jboss.org/browse/JBPAPP-6130
Message copyRedistribute = message.copy(storageManager.generateID());
- Bindings bindings =
addressManager.getBindingsForRoutingAddress(message.getAddressSimpleString());
+ Bindings bindings =
addressManager.getBindingsForRoutingAddress(originatingQueue.getAddress());
--- End diff --
nice!!! easy and simple fix!!!!
> Redistribution of messages does not work if prefixing is used
> --------------------------------------------------------------
>
> Key: ARTEMIS-1612
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1612
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Martyn Taylor
> Priority: Major
>
> The problem lies in the redistribution logic, it uses the message address to
> locate the bindings. However, once the message has been routed, the original
> "prefixless routing address" is not available.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)