Croway opened a new pull request, #22403:
URL: https://github.com/apache/camel/pull/22403

   ## Summary
   
   Fixes [CAMEL-23284](https://issues.apache.org/jira/browse/CAMEL-23284).
   
   In `YamlRoutesBuilderLoader.extractCamelEndpointUri()`, Pipe YAML Kamelet 
properties containing `{{placeholder}}` patterns (Camel property placeholders) 
are URL-encoded to `%7B%7Bplaceholder%7D%7D` by 
`URISupport.createQueryString(params)`. This prevents Camel from resolving the 
property placeholders at runtime.
   
   ## Fix
   
   Before calling `URISupport.createQueryString(params)`, wrap any parameter 
value containing `{{` with `RAW(...)`. The `RAW()` wrapper is a standard Camel 
mechanism that tells the URI parser to use the value as-is without URL 
encoding. For example, `{{timer.message}}` becomes `RAW({{timer.message}})`, 
which `createQueryString` will preserve literally instead of percent-encoding 
the curly braces.
   
   ## Test plan
   
   - [ ] Verify that a Pipe YAML definition with Kamelet properties using 
`{{placeholder}}` syntax correctly resolves the placeholders at runtime
   - [ ] Verify that Pipe YAML Kamelet properties without placeholders continue 
to work as before
   - [ ] Existing unit tests pass
   
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to