Ladislav Lengyel created CAMEL-6914:
---------------------------------------

             Summary: Camel fails to send messages to IPv6 address with a port 
number
                 Key: CAMEL-6914
                 URL: https://issues.apache.org/jira/browse/CAMEL-6914
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.11.0
            Reporter: Ladislav Lengyel
            Priority: Critical


Dear Camel team,
we are just verifying our migrated application to Apache Camel. Today we found 
an issue that is not described on the web, in the faq  nor among the existing 
issues.
We are creating endpoints via String literals and when we started the IPv6 
tests we failed on this issue.
The Camel transforms the orginal address 
{noformat}http://[2a00:8a00:6000:40::1413]:30300{noformat}
to this format
{noformat}http://%5B2a00:8a00:6000:40::1413%5D:30300{noformat}
which causes this exception
{noformat}instance1 2013-10-30 13:25:23,914 
org.apache.camel.processor.DefaultErrorHandler DEBUG 
(MarkerIgnoringBase.java:debug:72) [Camel (camel-1) thread #74 - 
JmsConsumer[XXX-RR-TEST]]
| Failed delivery for (MessageId: 
ID:mch30-pgd02-b-45068-1383134137465-8:5:1:1:3 on ExchangeId: 
ID-mch30-pgd02-b-35624-1383134141407-0-176). On delivery attempt: 0 caught: 
org.apache.commons.httpclient.URIException: IPv6reference{noformat}

The suggested solution is to remove the square brackets {noformat}[ ]{noformat} 
from the {noformat}unsafeCharacters{noformat} in the 
{noformat}org.apache.camel.util.UnsafeUriCharactersEncoder{noformat}
since the square brackets are valid IPv6 characters.
Thanks!
Best regards,
Laci



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to