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

   ## Summary
   
   - Fix kamelet parameter values being URL-encoded by the YAML DSL but never 
decoded, because `KameletComponent` uses `useRawUri()=true`. Values like 
`application/json` were arriving as `application%2Fjson` in kamelet templates, 
causing HTTP 415 errors in kamelet integration tests.
   - The root cause is `YamlRoutesBuilderLoader` calling 
`URISupport.createQueryString(params)` which defaults to `encode=true`. Changed 
to `createQueryString(params, !kamelet)` to skip encoding for kamelet URIs, 
matching what `KameletDeserializer` and `YamlSupport` already do.
   - Added test in `KameletTest.groovy` verifying that property values 
containing `/` pass through YAML `parameters:` block to kamelet templates 
unencoded.
   
   Supersedes #23391 with a source-level fix instead of decoding at the 
destination.
   
   ## Test plan
   
   - [x] `KameletTest` suite passes (14 tests including new encoding test)
   - [ ] CI validates `camel-yaml-dsl` and `camel-kamelet` modules
   - [ ] Verify kamelet integration tests in `camel-kamelets` repo no longer 
fail with URL-encoded content types
   
   _Claude Code on behalf of Claus Ibsen_


-- 
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