Bug 787134

Summary: TCK: Subscriptions with nolocal flag set receives messages sent using the same connection
Product: Red Hat Enterprise MRG Reporter: Jiri Pechanec <jpechane>
Component: qpid-javaAssignee: Rajith Attapattu <rattapat+nobody>
Status: CLOSED CURRENTRELEASE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: unspecified Docs Contact:
Priority: high    
Version: DevelopmentCC: jross
Target Milestone: 2.1.2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Patch for fixing the no-local issue none

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.