activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (AMQ-3270) URISupport.parseComposite broken for IPV6
Date Mon, 23 Apr 2012 22:14:32 GMT

     [ https://issues.apache.org/jira/browse/AMQ-3270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish closed AMQ-3270.
-----------------------------

    Resolution: Invalid

Incorrect usage of the URISupport tools is at fault here.
                
> URISupport.parseComposite broken for IPV6
> -----------------------------------------
>
>                 Key: AMQ-3270
>                 URL: https://issues.apache.org/jira/browse/AMQ-3270
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>            Reporter: Gary D. Gregory
>
> For example:
> {code:java}
>     @Test
>     public void testParseComposite() throws URISyntaxException {
>         URISupport.parseComposite(new URI("vm://[0:0:0:0:0:0:0:1]?broker.persistent=false"));
>     }
> {code}
> fails with:
> {noformat}
> java.net.URISyntaxException: Illegal character in scheme name at index 0: [0:0:0:0:0:0:0:1]?broker.persistent=false
> 	at java.net.URI$Parser.fail(URI.java:2809)
> 	at java.net.URI$Parser.checkChars(URI.java:2982)
> 	at java.net.URI$Parser.checkChar(URI.java:2992)
> 	at java.net.URI$Parser.parse(URI.java:3008)
> 	at java.net.URI.<init>(URI.java:578)
> 	at org.apache.activemq.util.URISupport.parseComposite(URISupport.java:258)
> 	at org.apache.activemq.util.URISupport.parseComposite(URISupport.java:202)
>         ...
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message