[ 
https://issues.apache.org/jira/browse/QPID-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682338#action_12682338
 ] 

Rajith Attapattu commented on QPID-1720:
----------------------------------------

This is fixed in Qpid trunk at rev 751061
The fix is a bit of a hack. If client id is specified with an underscore (ex 
my_clientid) then the .getHost() method would return empty.
In that case I do an additional check to see if the client id is indeed 
specified by inspecting the value returned by .getAuthority().

> If client id contains an underscore it is not recognized in connection URL 
> parsing
> ----------------------------------------------------------------------------------
>
>                 Key: QPID-1720
>                 URL: https://issues.apache.org/jira/browse/QPID-1720
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M4
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>             Fix For: M5
>
>
> When the following URL is parsed the client ID is not recognized and 
> therefore a unique ID is generated.
> amqp://user:p...@client_id/test?brokerlist='tcp://localhost:5672'
> The java URI parser skips it due to the underscore. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to