Bug 1024972 - bind using qpid-config succeeds on exclusive queue
Summary: bind using qpid-config succeeds on exclusive queue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 3.0
: ---
Assignee: Gordon Sim
QA Contact: Petr Matousek
URL:
Whiteboard:
Depends On:
Blocks: 1150626
TreeView+ depends on / blocked
 
Reported: 2013-10-30 17:02 UTC by Petr Matousek
Modified: 2014-10-08 14:29 UTC (History)
4 users (show)

Fixed In Version: qpid-cpp-0.22-25.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1150626 (view as bug list)
Environment:
Last Closed: 2014-09-24 15:09:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-5280 0 None None None Never
Red Hat Product Errata RHEA-2014:1296 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 3.0 Release 2014-09-24 19:00:06 UTC

Description Petr Matousek 2013-10-30 17:02:17 UTC
Description of problem:

When a binding request is send using address string to an exclusive queue (held by another session) the request fails with resource-locked exception (as expected). But when the binding request is issued by qpid-tools (qpid-config) no exception is received and the binding is created.

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

How reproducible:
100%

Steps to Reproduce:
1. $cppapi/drain -t 10 "q;{create:receiver, node:{x-declare:{'exclusive': True}}}" & 
2. $cppapi/drain "q;{create:always,node:{x-bindings: [{ exchange: 'amq.direct', key: '' }]}}"
3. resource-locked exception (expected)
4. qpid-config bind amq.direct q
5. no exception, binding created (expected resource-locked exception)

Actual results:
bind using qpid-config succeeds for exclusive queue (declared by another session)

Expected results:
bind command fails with resource-locked exception

Additional info:

Comment 1 Gordon Sim 2013-10-31 14:16:05 UTC
Fixed upstream: https://svn.apache.org/r1537498

Note that this is a general issue with bind/unbind and exclusive queues. E.g. if you change the address in step 2. above to "amq.direct; {create:always, node:{x-bindings:[{queue:q}]}}" it will succeed in creating the binding. The reason it fails is due to the subscribe request when the node is the queue, not the bind request.

Comment 6 Petr Matousek 2013-11-12 16:00:40 UTC
This issue has been fixed (tested both amqp0-10/1.0). 
Verified on rhel6.4 (i386, x86_64).

packages used for testing:
qpid-cpp-*-0.22-25.el6

Comment 7 errata-xmlrpc 2014-09-24 15:09:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-1296.html


Note You need to log in before you can comment on or make changes to this bug.