You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/06/22 08:04:23 UTC

[PR] CAMEL-23594: Fix kamelet properties being URL-encoded in YAML DSL [camel]

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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23594: Fix kamelet properties being URL-encoded in YAML DSL [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24170:
URL: https://github.com/apache/camel/pull/24170


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23594: Fix kamelet properties being URL-encoded in YAML DSL [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24170:
URL: https://github.com/apache/camel/pull/24170#issuecomment-4766421414

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `dsl/camel-yaml-dsl/camel-yaml-dsl`
   
   <details><summary>All tested modules (8 modules)</summary>
   
   - Camel :: JBang :: MCP
   - Camel :: JBang :: Plugin :: Route Parser
   - Camel :: JBang :: Plugin :: TUI
   - Camel :: JBang :: Plugin :: Validate
   - Camel :: Launcher :: Container
   - Camel :: YAML DSL
   - Camel :: YAML DSL :: Validator
   - Camel :: YAML DSL :: Validator Maven Plugin
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/27938385193)


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23594: Fix kamelet properties being URL-encoded in YAML DSL [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24170:
URL: https://github.com/apache/camel/pull/24170#issuecomment-4766353584

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org