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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to