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)" <ji...@apache.org> on 2011/03/01 21:02:36 UTC

[jira] Created: (QPID-3099) Java qpid-client ignores hostnames containing underscores

Java qpid-client ignores hostnames containing underscores
---------------------------------------------------------

                 Key: QPID-3099
                 URL: https://issues.apache.org/jira/browse/QPID-3099
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.8, 0.6, 0.5
            Reporter: Rajith Attapattu
            Assignee: Rajith Attapattu
            Priority: Minor
             Fix For: 0.9


When defining a connection URL listing a broker that has an underscore the hostname results in the broker host being evaluated to "localhost" rather than the intended host.

e.g. amqp://guest:guest@clientid/test?brokerlist='tcp://under_score:5672'
       amqp://guest:guest@clientid/test?brokerlist='tcp://under_score'


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-3099) Java qpid-client ignores hostnames containing underscores

Posted by "Rajith Attapattu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu resolved QPID-3099.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.9)
                   0.10

Fixed along with a test case.

> Java qpid-client ignores hostnames containing underscores
> ---------------------------------------------------------
>
>                 Key: QPID-3099
>                 URL: https://issues.apache.org/jira/browse/QPID-3099
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.5, 0.6, 0.8
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>            Priority: Minor
>             Fix For: 0.10
>
>
> When defining a connection URL listing a broker that has an underscore the hostname results in the broker host being evaluated to "localhost" rather than the intended host.
> e.g. amqp://guest:guest@clientid/test?brokerlist='tcp://under_score:5672'
>        amqp://guest:guest@clientid/test?brokerlist='tcp://under_score'

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-3099) Java qpid-client ignores hostnames containing underscores

Posted by "Robbie Gemmell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001199#comment-13001199 ] 

Robbie Gemmell commented on QPID-3099:
--------------------------------------

An underscore is not a legal hostname character, so im not sure this is a bug exactly? Perhaps logging the presence of an illegal hostname would be helpful though.

> Java qpid-client ignores hostnames containing underscores
> ---------------------------------------------------------
>
>                 Key: QPID-3099
>                 URL: https://issues.apache.org/jira/browse/QPID-3099
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.5, 0.6, 0.8
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>            Priority: Minor
>             Fix For: 0.9
>
>
> When defining a connection URL listing a broker that has an underscore the hostname results in the broker host being evaluated to "localhost" rather than the intended host.
> e.g. amqp://guest:guest@clientid/test?brokerlist='tcp://under_score:5672'
>        amqp://guest:guest@clientid/test?brokerlist='tcp://under_score'

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-3099) Java qpid-client ignores hostnames containing underscores

Posted by "Rajith Attapattu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001667#comment-13001667 ] 

Rajith Attapattu commented on QPID-3099:
----------------------------------------

I treated this as a bug based on a customer request.
My first impression was that an underscore was a bit odd in a host name, but it seems they have named a host by that name.
I would leave this fix as it is and leave the correct naming of hosts to the end users.

> Java qpid-client ignores hostnames containing underscores
> ---------------------------------------------------------
>
>                 Key: QPID-3099
>                 URL: https://issues.apache.org/jira/browse/QPID-3099
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.5, 0.6, 0.8
>            Reporter: Rajith Attapattu
>            Assignee: Rajith Attapattu
>            Priority: Minor
>             Fix For: 0.9
>
>
> When defining a connection URL listing a broker that has an underscore the hostname results in the broker host being evaluated to "localhost" rather than the intended host.
> e.g. amqp://guest:guest@clientid/test?brokerlist='tcp://under_score:5672'
>        amqp://guest:guest@clientid/test?brokerlist='tcp://under_score'

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org