You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/04/02 11:45:21 UTC
[PR] CAMEL-23284: Fix Pipe Kamelet properties with {{placeholder}} being URL-encoded [camel]
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23284: Fix Pipe Kamelet properties with {{placeholder}} being URL-encoded [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22403:
URL: https://github.com/apache/camel/pull/22403#issuecomment-4177310076
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `dsl/camel-yaml-dsl/camel-yaml-dsl`
<details><summary>All tested modules (34 modules)</summary>
- Camel :: Coverage
- Camel :: Coverage [pom]
- Camel :: JBang :: Core
- Camel :: JBang :: Core [jar]
- Camel :: JBang :: Integration tests
- Camel :: JBang :: Integration tests [jar]
- Camel :: JBang :: MCP
- Camel :: JBang :: MCP [jar]
- Camel :: JBang :: Main
- Camel :: JBang :: Main [jar]
- Camel :: JBang :: Plugin :: Edit
- Camel :: JBang :: Plugin :: Edit [jar]
- Camel :: JBang :: Plugin :: Generate
- Camel :: JBang :: Plugin :: Generate [jar]
- Camel :: JBang :: Plugin :: Kubernetes
- Camel :: JBang :: Plugin :: Kubernetes [jar]
- Camel :: JBang :: Plugin :: Route Parser
- Camel :: JBang :: Plugin :: Route Parser [jar]
- Camel :: JBang :: Plugin :: Testing
- Camel :: JBang :: Plugin :: Testing [jar]
- Camel :: JBang :: Plugin :: Validate
- Camel :: JBang :: Plugin :: Validate [jar]
- Camel :: Kamelet Main
- Camel :: Kamelet Main [jar]
- Camel :: Launcher
- Camel :: Launcher [jar]
- Camel :: Launcher :: Container
- Camel :: Launcher :: Container [pom]
- Camel :: YAML DSL
- Camel :: YAML DSL [jar]
- Camel :: YAML DSL :: Validator
- Camel :: YAML DSL :: Validator [jar]
- Camel :: YAML DSL :: Validator Maven Plugin
- Camel :: YAML DSL :: Validator Maven Plugin [maven-plugin]
</details>
--
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-23284: Fix Pipe Kamelet properties with {{placeholder}} being URL-encoded [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22403:
URL: https://github.com/apache/camel/pull/22403#issuecomment-4177033586
: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 `build-all`, `build-dependents`, `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
Re: [PR] CAMEL-23284: Fix Pipe Kamelet properties with {{placeholder}} being URL-encoded [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway closed pull request #22403: CAMEL-23284: Fix Pipe Kamelet properties with {{placeholder}} being URL-encoded
URL: https://github.com/apache/camel/pull/22403
--
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