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 817e4848dc24 CAMEL-22772: Shared variables set with 
ComponentCustomizer for Freemarker are not respected when using dynamic 
templates (#20341)
817e4848dc24 is described below

commit 817e4848dc24d41104dfcecb39f5854150d6514d
Author: Bartosz Popiela <[email protected]>
AuthorDate: Thu Dec 11 07:07:25 2025 +0100

    CAMEL-22772: Shared variables set with ComponentCustomizer for Freemarker 
are not respected when using dynamic templates (#20341)
---
 .../java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java
 
b/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java
index 96896c15030c..ab3807272216 100644
--- 
a/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java
+++ 
b/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java
@@ -179,7 +179,7 @@ public class FreemarkerEndpoint extends ResourceEndpoint {
         if (reader != null) {
             log.debug("Freemarker is evaluating template read from header {} 
using context: {}",
                     FreemarkerConstants.FREEMARKER_TEMPLATE, dataModel);
-            template = new Template("temp", reader, new 
Configuration(Configuration.VERSION_2_3_34));
+            template = new Template("temp", reader, configuration);
         } else {
             log.debug("Freemarker is evaluating {} using context: {}", path, 
dataModel);
             if (getEncoding() != null) {

Reply via email to