You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/09/30 13:34:00 UTC

[jira] [Commented] (CAMEL-25188) camel-util - URISupport.normalizeUri alternates between + and %20 for a space in a query value

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

Claus Ibsen commented on CAMEL-25188:
-------------------------------------

PR: https://github.com/apache/camel/pull/27131

_Claude Code on behalf of davsclaus_

> camel-util - URISupport.normalizeUri alternates between + and %20 for a space in a query value
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-25188
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25188
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> Since CAMEL-24524 (on main only, not released) the fast path of URISupport.normalizeUri writes a space in a query value as %20, while the complex path (URIs with % or unsafe characters) writes it as +. So normalizing a normalized URI changes it, and the same endpoint written in two ways gets two endpoint keys:
> ||URI||key on main||key in 4.22.1||
> |log:foo?marker=a+b|log://foo?marker=a%20b|log://foo?marker=a+b|
> |log:foo?marker=a%20b|log://foo?marker=a+b|log://foo?marker=a+b|
> The value the endpoint gets is the same ("a b"), but the keys differ, so endpoint registry and cache lookups can miss. The fast path should write a space as +, as the complex path and all released versions do.
> _Claude Code on behalf of davsclaus_



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