[jboss-remoting-issues] [JBoss JIRA] Commented: (JBREM-1164) Remoting shouldn't require IPv6 addresses to be surrounded by brackets

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Fri Oct 16 11:55:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBREM-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12490186#action_12490186 ] 

Richard Achmatowicz commented on JBREM-1164:
--------------------------------------------

Because the URI constructor returns null for the host, the method resolveHost() sets the host to localhost or 127.0.0.1.
This is what I am seeing when I start AS 5 with IPv6 addresses not enclosed in brackets.

If the URI contains an IPv6 address which is enclosed in brackets, the host is correctly set to the IPv6 address with the brackets remaining.
Here are some results of a test done:
URI components for http://192.168.0.100:8080/a/b/c?key=val: protocol: http ,host: 192.168.0.100 ,port: 8080 ,path: /a/b/c ,query: key=val
URI components for http://3ffe:ffff:100:f101::2:8080/a/b/c?key=val: protocol: http ,host: 127.0.0.1 ,port: -1 ,path: /a/b/c ,query: key=val
URI components for http://[3ffe:ffff:100:f101::2]:8080/a/b/c?key=val: protocol: http ,host: [3ffe:ffff:100:f101::2] ,port: 8080 ,path: /a/b/c ,query: key=val
URI components for http://[fe80::60d1:6eff:fe9d:f87b%eth0]:8080/a/b/c?key=val: protocol: http ,host: [fe80::60d1:6eff:fe9d:f87b%eth0] ,port: 8080 ,path: /a/b/c ,query: key=val 

It would be nice to be able the InvokerLocator to check for the special case where an IPv6 address is not enclosed in brackets in a URL and add them. But this would require separating the IPv6 host from the rest of the URL by hand. Even if the URISyntaxException were raised, we would still have to do this. 





> Remoting shouldn't require IPv6 addresses to be surrounded by brackets
> ----------------------------------------------------------------------
>
>                 Key: JBREM-1164
>                 URL: https://jira.jboss.org/jira/browse/JBREM-1164
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.5.2 (Flounder)
>            Reporter: Ron Sigal
>            Assignee: Ron Sigal
>             Fix For: 2.5.2.SP1 (Flounder)
>
>
> Although IPv6 addresses are surrounded by brackets in URLs, the addresses themselves don't have brackets.  Thus, it should be possible to start the Application Server with
>    run.sh -b ::1
> instead of requiring
>    run.sh -b [::1]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-remoting-issues mailing list