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 52b36c7f920 CAMEL-21830: camel-file - Using consumer template to 
consume a single file issue with idempotentEager
52b36c7f920 is described below

commit 52b36c7f920780ecc00b6d2dd3064060a1e26eab
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Wed Mar 5 07:23:17 2025 +0100

    CAMEL-21830: camel-file - Using consumer template to consume a single file 
issue with idempotentEager
---
 .../main/java/org/apache/camel/component/file/GenericFileConsumer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
 
b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
index 6e111228e5c..032bc3ba792 100644
--- 
a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
+++ 
b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
@@ -281,7 +281,7 @@ public abstract class GenericFileConsumer<T> extends 
ScheduledBatchPollingConsum
     void removeExcessiveIdempotentFile(GenericFile file, Exchange dynamic) {
         String key = file.getAbsoluteFilePath();
         if (endpoint.getIdempotentKey() != null) {
-            Exchange dummy = GenericFileHelper.createDummy(endpoint, dynamic, 
() -> file);
+            Exchange dummy = endpoint.createExchange(file);
             key = endpoint.getIdempotentKey().evaluate(dummy, String.class);
         }
         if (key != null) {

Reply via email to