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/28 20:21:00 UTC
[jira] [Work started] (CAMEL-25120) camel-core - do not reject && in endpoint uris
[ https://issues.apache.org/jira/browse/CAMEL-25120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-25120 started by Claus Ibsen.
-------------------------------------------
> camel-core - do not reject && in endpoint uris
> ----------------------------------------------
>
> Key: CAMEL-25120
> URL: https://issues.apache.org/jira/browse/CAMEL-25120
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
>
> DefaultComponent.validateURI rejects any endpoint uri containing && (Invalid uri syntax: Double && marker found), unless a RAW(...) somewhere in the uri contains &&. The check dates from 2008 when the query was split with a regexp on &.
> Today the check is not what catches a double & in the query: the uri is normalized first, which turns delay=250&&period=500 into ?=&delay=250&period=500, and the endpoint then fails with a confusing property binding error on an empty option name. Meanwhile the check rejects a legitimate && in the endpoint path, for example language:simple:${header.a} == 1 && ${header.b} == 2.
> Remove the check, and let the query parser ignore an empty parameter so a=1&&b=2 is the same as a=1&b=2.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)