Bug 860011 - JMS client: node binding not created for topic node
Summary: JMS client: node binding not created for topic node
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: 2.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 2.3
: ---
Assignee: Rajith Attapattu
QA Contact: Petr Matousek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-24 15:28 UTC by Justin Ross
Modified: 2013-03-06 18:51 UTC (History)
4 users (show)

Fixed In Version: qpid-java-0.18-5
Doc Type: Bug Fix
Doc Text:
Cause: x-bindings are not evaluated as defined the address spec Consequence: For producers x-bindings are not created at all. Link bindings are not created/deleted for both producers and consumers as per the address spec. Fix: x-bindings now evaluated as defined by the addressing spec. Result: x-bindings can now be created for both producers and consumers for both node and links.
Clone Of:
Environment:
Last Closed: 2013-03-06 18:51:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-3317 0 None None None 2012-10-02 17:26:51 UTC
Red Hat Bugzilla 726687 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 870030 0 low NEW "not allowed" error while creating node binding for a default topic node 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 893591 0 low NEW Topic node type must be specified in order to create node/link binding 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2013:0561 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging 2.3 security update 2013-03-06 23:48:13 UTC

Internal Links: 726687 870030 893591

Description Justin Ross 2012-09-24 15:28:56 UTC
See https://issues.apache.org/jira/browse/QPID-4146

Comment 1 Justin Ross 2012-10-02 17:26:51 UTC
(In reply to comment #0)
> See https://issues.apache.org/jira/browse/QPID-4146

Correction, the issue is https://issues.apache.org/jira/browse/QPID-3317

Comment 3 Rajith Attapattu 2012-10-18 13:09:49 UTC
A fix has been made in upstream
http://svn.apache.org/viewvc?rev=1397651&view=rev

You could test this as follows, using drain

1. Create my-queue
   Drain "my-queue;{create:always}"

2. Then use the following address

   Drain "my-exchange; {create: always, node: {type:topic, x-bindings: [{exchange : 'my-exchange',queue: 'my-queue', key : test}]}}"

Look at the broker logs and verify that a binding is create for my-queue to exchange 'my-exchange' using binding key 'test'.

Comment 4 Petr Matousek 2012-10-26 16:35:45 UTC
(In reply to comment #3)
> 2. Then use the following address
> 
>    Drain "my-exchange; {create: always, node: {type:topic, x-bindings:
> [{exchange : 'my-exchange',queue: 'my-queue', key : test}]}}"

Actually the reproduction scenario is wrong and works well, java producer must be used to reproduce this issue. Use Spout instead of drain on creating the binding.

Comment 7 Rajith Attapattu 2012-10-31 18:17:26 UTC
The commit made under QPID-3317 covers a whole lot of BZ including this one.
The commit refactored the address handling code to remove a bunch of long standing issues.

Here is a complete list of BZ fixed by QPID-3317

https://bugzilla.redhat.com/show_bug.cgi?id=694226
https://bugzilla.redhat.com/show_bug.cgi?id=860011
https://bugzilla.redhat.com/show_bug.cgi?id=735329
https://bugzilla.redhat.com/show_bug.cgi?id=672534
https://bugzilla.redhat.com/show_bug.cgi?id=758254

Comment 8 Rajith Attapattu 2012-10-31 18:48:36 UTC
The original fix made to QPID-4146 was just a workaround.
The fix made in QPID-3317 fixed this properly afterwards.

The issue mentioned in this BZ (QPID-4146) is a good way to test QPID-3317 as well.

Comment 9 Petr Matousek 2012-11-01 11:07:40 UTC
(In reply to comment #7)
> The commit made under QPID-3317 covers a whole lot of BZ including this one.
> The commit refactored the address handling code to remove a bunch of long
> standing issues.
> 
> Here is a complete list of BZ fixed by QPID-3317
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=694226
> https://bugzilla.redhat.com/show_bug.cgi?id=860011
> https://bugzilla.redhat.com/show_bug.cgi?id=735329
> https://bugzilla.redhat.com/show_bug.cgi?id=672534
> https://bugzilla.redhat.com/show_bug.cgi?id=758254

Rajith, thanks for clarification, but from my point of view no bugzilla listed above properly covers the issue in description of QPID-3317 (JMS client doesn't distinguish between node and link bindings), anyway I'll test it as a part of this bz as well.

Comment 10 Petr Matousek 2013-01-18 14:06:59 UTC
This issue has been fixed.

JMS client distinguish between node and link bindings well.
Node bindings can be successfully created for topic nodes.

Verified on rhel5.9, rhel6.4 Beta (i386 / x86_64)

Packages used for testing:
qpid-java-*-0.18-6.el5

-> VERIFIED

Comment 12 errata-xmlrpc 2013-03-06 18:51:59 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/RHSA-2013-0561.html


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