Bug 787134 - TCK: Subscriptions with nolocal flag set receives messages sent using the same connection
Summary: TCK: Subscriptions with nolocal flag set receives messages sent using the sam...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: Development
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 2.1.2
: ---
Assignee: Rajith Attapattu
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-03 10:03 UTC by Jiri Pechanec
Modified: 2012-12-07 17:46 UTC (History)
1 user (show)

Fixed In Version: qpid-jca-0.14-8
Doc Type: Bug Fix
Doc Text:
Cause: nolocal is not passed as an argument during Queue declare. Consequence: When nolocal flag is set, the JMS client receives messages sent by the same connection. Fix: nolocal is now passed as an argument during queue-declare. Result: When nolocal flag is set, the JMS client does not receive any messages sent by the same connection.
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)
Patch for fixing the no-local issue (9.72 KB, patch)
2012-02-13 22:58 UTC, Rajith Attapattu
no flags Details | Diff

Description Jiri Pechanec 2012-02-03 10:03:40 UTC
TCK tests failing
com/sun/ts/tests/jms/ee/all/sessiontests/SessionTests.java#SubscriberTests_from_appclient
com/sun/ts/tests/jms/ee/all/sessiontests/SessionTests.java#SubscriberTests_from_ejb
com/sun/ts/tests/jms/ee/all/sessiontests/SessionTests.java#SubscriberTests_from_jsp
com/sun/ts/tests/jms/ee/all/sessiontests/SessionTests.java#SubscriberTests_from_servlet
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#ConsumerTests_from_appclient
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#ConsumerTests_from_ejb
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#ConsumerTests_from_jsp
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#ConsumerTests_from_servlet
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#durableSubscriberTopicNoLocalTest_from_appclient
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#durableSubscriberTopicNoLocalTest_from_ejb
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#durableSubscriberTopicNoLocalTest_from_jsp
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#durableSubscriberTopicNoLocalTest_from_servlet
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#noLocalDeliveryTopicTest_from_appclient
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#noLocalDeliveryTopicTest_from_ejb
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#noLocalDeliveryTopicTest_from_jsp
com/sun/ts/tests/jms/ee/all/topictests/TopicTests.java#noLocalDeliveryTopicTest_from_servlet

I think it relates to issue mentioned by Rajith in one of his emails
4. no-local not working with addressing. I'm working on it currently.

Comment 1 Rajith Attapattu 2012-02-13 22:58:34 UTC
Created attachment 561695 [details]
Patch for fixing the no-local issue

This issue is covered in upstream via QPID-3836
A fix has been committed at http://svn.apache.org/viewvc?rev=1243719&view=rev

The attached patch is the same fix but adapted to the 0.14.mrg-preview.

Comment 3 Jiri Pechanec 2012-02-17 07:14:43 UTC
Verified in qpid-jca-0.14-8

Comment 4 Rajith Attapattu 2012-03-12 15:06:52 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: nolocal is not passed as an argument during Queue declare.

Consequence: When nolocal flag is set, the JMS client receives messages sent by the same connection. 

Fix:  nolocal is now passed as an argument during queue-declare.

Result:  When nolocal flag is set, the JMS client does not receive any messages sent by the same connection.


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