[
https://issues.apache.org/jira/browse/CAMEL-27563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-27563 started by Federico Mariani.
------------------------------------------------
> camel-ai-resource - a uriTemplate variable matches a dot segment that is
> percent-encoded or followed by path parameters
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27563
> URL: https://issues.apache.org/jira/browse/CAMEL-27563
> Project: Camel
> Issue Type: Bug
> Components: camel-ai
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Major
> Fix For: 4.24.0
>
>
> An {{ai-resource}} route with a {{uriTemplate}} refuses a variable value that
> is a {{.}} or {{..}} dot segment, because a URI or path consumer that
> receives the value can resolve it. The check looks only at the raw value, so
> these values still match and reach the route:
> * percent-encoded dot segments: {{%2e%2e}}, {{.%2e}}, {{%2E}}
> * dot segments behind an encoded separator: {{..%2F..%2Fetc%2Fpasswd}},
> {{..%5C..%5Cwindows}}
> * dot segments followed by path parameters: {{..;x}}, {{%2e%2e%3b}}. Tomcat
> and Spring drop the {{;x}} part of a segment before they resolve dot segments.
> Expected: a value that, once percent-decoded, is a dot segment or contains
> one between {{/}} or {{\}} separators does not match, a segment counting up
> to its first {{;}}. The route still receives the matched value verbatim.
> Resource templates are new in 4.24.0, so no released version is affected.
> Fixed in https://github.com/apache/camel/pull/30801.
> _Claude Code on behalf of Federico Mariani_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)