Updated Branches:
  refs/heads/master 63080ac78 -> b3fb66fac

CAMEL-6318: File/ftp consumer should only check idempotent repo for files, and 
not directories.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4d4b983d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4d4b983d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4d4b983d

Branch: refs/heads/master
Commit: 4d4b983d70afc25d0af792c35abfbdf745ae9b75
Parents: 63080ac
Author: Claus Ibsen <[email protected]>
Authored: Fri May 17 15:57:58 2013 +0200
Committer: Claus Ibsen <[email protected]>
Committed: Fri May 17 15:57:58 2013 +0200

----------------------------------------------------------------------
 .../camel/component/file/GenericFileConsumer.java  |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4d4b983d/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
 
b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
index 6cb3262..301262f 100644
--- 
a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
+++ 
b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
@@ -431,7 +431,8 @@ public abstract class GenericFileConsumer<T> extends 
ScheduledBatchPollingConsum
             return false;
         }
 
-        if (endpoint.isIdempotent()) {
+        // if its a file then check we have the file in the idempotent 
registry already
+        if (!isDirectory && endpoint.isIdempotent()) {
             // use absolute file path as default key, but evaluate if an 
expression key was configured
             String key = file.getAbsoluteFilePath();
             if (endpoint.getIdempotentKey() != null) {

Reply via email to