Jan Bednar created CAMEL-13524:
----------------------------------

             Summary: RuntimeCamelCatalog#asEndpointUri strips dash from url 
with toD and netty4-http
                 Key: CAMEL-13524
                 URL: https://issues.apache.org/jira/browse/CAMEL-13524
             Project: Camel
          Issue Type: Bug
          Components: came-core
    Affects Versions: 3.0.0-M2, 2.23.0
            Reporter: Jan Bednar
         Attachments: 
RuntimeCamelCatalog#asEndpointUri_strips_dash_from_url_with_netty4-http.patch

[https://stackoverflow.com/questions/56136857/how-to-use-camel-tod-and-netty4-http-component-problem-with-optimization-of-din]

This is very similar to CAMEL-12705, but in this case it affects url with 
dashes. Tested with current master.

*{{url}}*
{code:java}
netty4-http:http://a-b-c.hostname.tld:8080/anything{code}
*results in* 
{code:java}
netty4-http:http:a-b:8080/path{code}
Unit test in attachment.

 

Maybe

_AbstractCamelCatalog#SYNTAX_PATTERN_ should be changed to 
{code:java}
([\w.-]+)
{code}
Or is there reason, why is dash excluded from regexp?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to