You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (Jira)" <ji...@apache.org> on 2022/08/29 09:19:00 UTC

[jira] [Commented] (CAMEL-18436) camel-core - Avoid using java.net.URI for endpoint parsing

    [ https://issues.apache.org/jira/browse/CAMEL-18436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17597071#comment-17597071 ] 

Luca Burgazzoli commented on CAMEL-18436:
-----------------------------------------

This and https://issues.apache.org/jira/browse/CAMEL-16221 would be a very good addition (IMHO)

> camel-core - Avoid using java.net.URI for endpoint parsing
> ----------------------------------------------------------
>
>                 Key: CAMEL-18436
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18436
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.0
>
>
> The java.net.URI have historically been used for camel endpoint uri parsing because of lack of own parser. But the java.net.URI has some drawbacks as it enforces the toString representation to alter the text to use safe uri charachters and percentage encoding such as %20 as space and %25 as percentage sign.
> So we had to come up with RAW(xxx) to avoid parsing specific parts of the endpoint uri, as a kinda workaround.
> We should flip the table, and keep the uri as-is, and then for specific components that need to use java.net.URI style (eg HTTP based) then these components will internally transform to java.net.URI.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)