You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jan Bednar (JIRA)" <ji...@apache.org> on 2019/05/14 22:15:00 UTC
[jira] [Updated] (CAMEL-13524) RuntimeCamelCatalog#asEndpointUri
strips dash from url with toD and netty4-http
[ https://issues.apache.org/jira/browse/CAMEL-13524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Bednar updated CAMEL-13524:
-------------------------------
Description:
[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?-
I have tried to edit regexp and it broke test too, it results in resolved = "netty4-http:http:a-b-c.hostname.tld-8080"
was:
[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?
> 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: 2.23.0, 3.0.0-M2
> Reporter: Jan Bednar
> Priority: Major
> 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?-
> I have tried to edit regexp and it broke test too, it results in resolved = "netty4-http:http:a-b-c.hostname.tld-8080"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)