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

Gordon Sim commented on QPID-4969:
----------------------------------

The test should also be fixed, e.g.:

{noformat}
Index: src/tests/ExchangeTest.cpp
===================================================================
--- src/tests/ExchangeTest.cpp  (revision 1498354)
+++ src/tests/ExchangeTest.cpp  (working copy)
@@ -138,7 +138,7 @@
     args3.setInt("b", 6);
 
     headers.bind(a, "", &args1);
-    headers.bind(a, "", &args3);
+    headers.bind(a, "other", &args3);//need to use different binding key to 
correctly identify second binding
     headers.bind(b, "", &args2);
     headers.bind(c, "", &args1);
{noformat}
                
> C++ Broker headers exchange allows creation of bindings with duplicate keys
> ---------------------------------------------------------------------------
>
>                 Key: QPID-4969
>                 URL: https://issues.apache.org/jira/browse/QPID-4969
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: 0.22
>            Reporter: Chuck Rolke
>            Assignee: Chuck Rolke
>             Fix For: 0.23
>
>
> The test case:
> {code}
> qpid-config add queue MyQueue --durable
> qpid-config bind amq.match MyQueue SomeKey any property1=value1
> qpid-config bind amq.match MyQueue SomeKey all property1=value1
> {code}
> Causes a management error as two bindings are created with 
> amq.match,MyQueue,SomeKey managementId.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to