[ 
https://issues.apache.org/jira/browse/AMQ-6058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022942#comment-15022942
 ] 

ASF subversion and git services commented on AMQ-6058:
------------------------------------------------------

Commit dca6e4506eab2c6f5752085e39dd3368ead4afed in activemq's branch 
refs/heads/master from [~czobrisky]
[ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=dca6e45 ]

AMQ-6058 added a check to make sure the destination starts with the virtual 
topic prefix.


> Certain VirtualTopic configurations send messages to the wrong queue
> --------------------------------------------------------------------
>
>                 Key: AMQ-6058
>                 URL: https://issues.apache.org/jira/browse/AMQ-6058
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.12.1
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>
> When testing out configurations of VirtualTopics I noticed some of the 
> behavior doesn't seem quite right when using certain VirtualTopic set ups.
> Consider a VirtualTopic with the default name of {{>}} and a prefix called 
> {{q.test.vt.*.}}  Normally the desired behavior is to only forward messages 
> to consumers with that prefix.  For example,  if a message is published to a 
> topic called {{mytopic}}, then the consumer would be on queue 
> {{q.test.vt.myconsumer.mytopic}}.  
> However, I've noticed that based on the interceptor logic that uses the 
> destination map to find matching destinations, if a higher level queue 
> exists, such as {{q.test.>}} in this case, that queue will also receive the 
> message.
> It seems desirable that only queues starting with the defined prefix should 
> get the message so we should probably do a quick sanity check in the 
> VirtualTopicInterceptor to make sure the destinations that match start with 
> the VirtualTopic prefix defined.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to