This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 45cdcf6f83e CAMEL-21938 - set endpoint properties before appending
parameters to resourceUri (#17679)
45cdcf6f83e is described below
commit 45cdcf6f83e86a024a1eaaf87b954936b58d0d0e
Author: jubar <[email protected]>
AuthorDate: Mon Apr 7 21:41:02 2025 +0200
CAMEL-21938 - set endpoint properties before appending parameters to
resourceUri (#17679)
---
.../src/main/java/org/apache/camel/component/jolt/JoltComponent.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltComponent.java
b/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltComponent.java
index e42c310ecfe..8b3f1457553 100644
---
a/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltComponent.java
+++
b/components/camel-jolt/src/main/java/org/apache/camel/component/jolt/JoltComponent.java
@@ -44,6 +44,7 @@ public class JoltComponent extends DefaultComponent {
answer.setAllowTemplateFromHeader(allowTemplateFromHeader);
answer.setContentCache(cache);
answer.setTransform(transform);
+ setProperties(answer, parameters);
// if its a http resource then append any remaining parameters and
update the resource uri
if (ResourceHelper.isHttpUri(remaining)) {
@@ -71,7 +72,7 @@ public class JoltComponent extends DefaultComponent {
/**
* Whether to allow to use resource template from header or not (default
false).
- *
+ * <p>
* Enabling this allows to specify dynamic templates via message header.
However this can be seen as a potential
* security vulnerability if the header is coming from a malicious user,
so use this with care.
*/