Bug 1086813 - '#' character handling in the address
Summary: '#' character handling in the address
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java
Version: 2.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On: 1086810
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-11 14:51 UTC by Petr Matousek
Modified: 2020-11-04 22:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1086810
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1086816 0 medium CLOSED When the node name starts with '#' character the node shall be created 2021-02-22 00:41:40 UTC

Internal Links: 1086816

Description Petr Matousek 2014-04-11 14:51:42 UTC
+++ This bug was initially created as a clone of Bug #1086810 +++

Description of problem:

According to documentation (MPR), over 0-10, the Address converts a node name starting with a '#' character by inserting a UUID, This work well for all supported clients except the JMS client.

Also, when the address string starts with '#' character the node shall be created (and removed on link close). Using JMS client the desired node is NOT created. Please see additional info for details.  

Version-Release number of selected component (if applicable):
qpid-java-*-0.22-6

How reproducible:
100%

Steps to Reproduce:
1. javac -cp  CLASSPATH orapache.qpid.example.Drain -f "#q;{create: always}"
2. list queues (ie.: with qpid-config)
3. queue '#q' is listed instead of '<uuid>#q'
4. see Additional info

Actual results:
When the node name starts with '#' character:
1. uuid is NOT inserted before the node name
2. the node is NOT created

Expected results:
When the node name starts with '#' character:
1. uuid is inserted before the node name
2. the node is created and removed after the link is closed

Additional info:

JMS client:

./run_example.sh orapache.qpid.example.Drain -f "#q"
Exception in thread "main" javax.jms.JMSException: Error registering consumer: org.apache.qpid.AMQException: The name '#q' supplied in the address doesn't resolve to an exchange or a queue

C++ client:

./drain -t 1 "#q" & qpid-config queues; sleep 1; qpid-config queues
[1] 28029
Queue Name                                Attributes
=================================================================
441d5b59-4f9f-4eb5-9a34-fe81b0f8efab:0.0  auto-del excl 
ea0b1fd1-ee6f-440f-82bd-016b049822db#q    auto-del excl 
[1]+  Done                    ./qc2_drain -t 1 "#q"
Queue Name                                Attributes
=================================================================
78abdff1-c255-441d-98d1-3277fe4cbc17:0.0  auto-del excl

Comment 1 Petr Matousek 2014-04-11 14:52:38 UTC
cloned for 2.3.x.

affected version:
qpid-java-*-0.18-7


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