Bug 608052

Summary: Addressing strings in the jndi properties file is interpreted as binding urls.
Product: Red Hat Enterprise MRG Reporter: Rajith Attapattu <rattapat+nobody>
Component: qpid-javaAssignee: Rajith Attapattu <rattapat+nobody>
Status: CLOSED ERRATA QA Contact: Jeff Needle <jneedle>
Severity: urgent Docs Contact:
Priority: urgent    
Version: DevelopmentCC: gsim, rmusil
Target Milestone: 1.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
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:
Embargoed:

Description Rajith Attapattu 2010-06-25 14:26:28 UTC
Description of problem:
Addressing strings in the jndi properties file is interpreted as binding urls making it impossible to use addressing strings in the jndi properties file.

Version-Release number of selected component (if applicable):
qpid-java-0.7.946106-4

How reproducible:
Always

Steps to Reproduce:
1.Add the following to your jndi.properties file
  destination.myQueue2="my-queue; { create: receiver }"
2. Create a simple jms application that uses your jndi.properties file.  
3. Observe in the logs that it complains about the entry not being a valid binding URL.
  
Actual results:
The client throws an error when loading the jndi.properties file.

Expected results:
Should interpret the above as an address and create the destination accordingly.

Comment 1 Rajith Attapattu 2010-06-28 16:46:13 UTC
This is fixed in upstream at rev 958102 in Qpid trunk and committed to the internal git repo.

http://mrg1.lab.bos.redhat.com/cgit/qpid.git/commit/?id=7527a6a991830086df46e15bfab83d93f9b28f35

Comment 2 Jiri Kolar 2010-08-12 12:50:42 UTC
this is fixed in last packages
qpid-java-client-0.7.946106-7.el5

validated on RHEL5.5/RHEL4  i386 / x86_64  

packages:

# rpm -qa | grep -E '(qpid|openais|rhm)' | sort -u
openais-0.80.6-16.el5
openais-devel-0.80.6-16.el5
python-qpid-0.7.946106-12.el5
qpid-cpp-client-0.7.946106-11.el5
qpid-cpp-client-devel-0.7.946106-11.el5
qpid-cpp-client-devel-docs-0.7.946106-11.el5
qpid-cpp-client-ssl-0.7.946106-11.el5
qpid-cpp-mrg-debuginfo-0.7.946106-11.el5
qpid-cpp-server-0.7.946106-11.el5
qpid-cpp-server-cluster-0.7.946106-11.el5
qpid-cpp-server-devel-0.7.946106-11.el5
qpid-cpp-server-ssl-0.7.946106-11.el5
qpid-cpp-server-store-0.7.946106-11.el5
qpid-cpp-server-xml-0.7.946106-11.el5
qpid-java-client-0.7.946106-7.el5
qpid-java-common-0.7.946106-7.el5
qpid-tools-0.7.946106-8.el5
rhm-docs-0.7.946106-5.el5
rh-tests-distribution-MRG-Messaging-qpid_common-1.6-51


->VERIFIED