Bug 1024396

Summary: [AMQP 1.0] address string "node:{type:topic}" is ignored when both queue and exchange exists
Product: Red Hat Enterprise MRG Reporter: Pavel Moravec <pmoravec>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matousek <pematous>
Severity: low Docs Contact:
Priority: low    
Version: 3.0CC: esammons, gsim, iboverma, jross, pematous
Target Milestone: 3.0Keywords: TestCaseProvided
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-25.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 12:56:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1010399    

Description Pavel Moravec 2013-10-29 15:05:37 UTC
Description of problem:
Having a queue and exchange of the same name created, address string with ".. node:{type:topic}" is evaluated to queue every time.


Version-Release number of selected component (if applicable):
qpid-cpp-client-0.22-23.el6.x86_64


How reproducible:
100%


Steps to Reproduce:
0. service qpidd restart
1. qpid-send -a "amq.direct; {create:always, node:{type:queue}}" -m 3
2. qpid-send -a "amq.direct; {create:always, node:{type:topic}}" -m 3 --connection-options="{protocol:amqp1.0}"
3. qpid-stat -q; qpid-stat -e
4. qpid-receive -a "amq.direct; {create:always, node:{type:topic}}" -m 3 --connection-options="{protocol:amqp1.0}"
5. qpid-stat -q; qpid-stat -e


Actual results:
- step "3." shows 6 messages in queue "amq.direct" and 0 messages routed via the exchange
- step "5." shows 3 messages dequeued from the queue


Expected results:
- step "3." shows 3 messages in queue "amq.direct" and 3 messages routed (dropped) via the exchange
- step "5." shows 0 messages dequeued from the queue


Additional info:

Comment 1 Gordon Sim 2013-10-30 11:40:04 UTC
Fixed upstream: https://svn.apache.org/r1537051 (this also fixes bug 1024385).

Comment 2 Petr Matousek 2014-01-03 10:08:22 UTC
This issue has been fixed. Verified on rhel6.5 (x86_64, i386).

Note: During the verification the create policy was omitted in reproduction scenario steps 2. and 4. due to bug 1009454, comment 4.

packages under test:
qpid-cpp-*-0.22-29

-> VERIFIED