This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.14.x by this push:
     new 00ac965bd5ac CAMEL-22772: Shared variables set with 
ComponentCustomizer for Freemarker are not respected when using dynamic 
templates (#20341)
00ac965bd5ac is described below

commit 00ac965bd5ac9f2886ec07470c1ef56c60f62195
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