[jboss-jira] [JBoss JIRA] (AS7-4762) Remote naming fails to work with IPv6 provider URL
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Thu May 10 07:38:17 EDT 2012
[ https://issues.jboss.org/browse/AS7-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12691779#comment-12691779 ]
jaikiran pai commented on AS7-4762:
-----------------------------------
I believe Stuart is right. I wasn't paying attention that the user here is passing in the complete URI and not the individual parts. So I believe it's the responsibility of the user to pass in the correct IPv6 formatted URI.
For reference, here's our IRC discussion on this:
{quote}
(05:02:05 IST) Jaikiran: stuartdouglas: maybe i'm missing something, but why isn't that latest one not a valid ipv6 address?
(05:02:47 IST) stuartdouglas: The URL spec says that you need to add [] around the ip address in IPv6 URL's
(05:03:01 IST) stuartdouglas: so in this case it is the clients responsibility to pass in a valid URL
(05:03:24 IST) stuartdouglas: in the cases where we are building a URL from an IP address we need to add the brackets
(05:03:27 IST) Jaikiran: but we don't enforce that on server side for example the -b part
(05:03:44 IST) stuartdouglas: but if they are passing us a complete URL then it needs to have the []
(05:03:51 IST) stuartdouglas: That is because they just pass in an IP address
(05:03:52 IST) Jaikiran: ah ok, i see what you mean
(05:03:53 IST) stuartdouglas: not a URL
(05:04:03 IST) Jaikiran: yeah, good point actually
(05:04:07 IST) Jaikiran: i hadn't considered that
(05:04:43 IST) Jaikiran: so false alarm, i'll update that jira with these comments
{quote}
I'll mark this as not a bug.
> Remote naming fails to work with IPv6 provider URL
> --------------------------------------------------
>
> Key: AS7-4762
> URL: https://issues.jboss.org/browse/AS7-4762
> Project: Application Server 7
> Issue Type: Bug
> Components: Naming
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: jaikiran pai
> Assignee: jaikiran pai
> Priority: Critical
> Fix For: No Release
>
>
> Remote naming doesn't handle IPv6 addresses (like ::1) correctly which leads to connection creation failures for code like:
> {code}
> final Properties env = new Properties();
> env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
> env.put(Context.PROVIDER_URL, "remote://::1:4447);
> context = new InitialContext(env);
> // Perform the JNDI lookups
> context.lookup("java:jboss/exported/jms/queue/test);
> {code}
> This fails with:
> {code}
> Caused by: java.lang.IllegalArgumentException: destination address may not be null
> at org.jboss.remoting3.remote.RemoteConnectionProvider.connect(RemoteConnectionProvider.java:98)
> at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:296)
> at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:251)
> at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:349)
> at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:333)
> at org.jboss.naming.remote.client.EndpointCache$EndpointWrapper.connect(EndpointCache.java:105)
> at org.jboss.naming.remote.client.NamingStoreCache.getRemoteNamingStore(NamingStoreCache.java:55)
> at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateCachedNamingStore(InitialContextFactory.java:166)
> at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:139)
> at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:104)
> ... 10 more
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list