You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org> on 2009/03/16 16:51:51 UTC

[jira] Commented: (QPID-1720) If client id contains an underscore it is not recognized in connection URL parsing

    [ 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:pass@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:dev-subscribe@qpid.apache.org