This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.8.x by this push:
new 314a296aa49 CAMEL-21938 - set endpoint properties before appending
parameters to resourceUri (#17679)
314a296aa49 is described below
commit 314a296aa49845cccc4b20f8ea3fcc1134335d34
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.
*/