You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/11/30 17:07:54 UTC
[camel] branch camel-3.14.x updated: CAMEL-18776: camel-hdfs - Fix HdfsNormalFileHandler to handle temporary file path correctly (#8803)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.14.x by this push:
new 4cb9cd7e5e3 CAMEL-18776: camel-hdfs - Fix HdfsNormalFileHandler to handle temporary file path correctly (#8803)
4cb9cd7e5e3 is described below
commit 4cb9cd7e5e373db6a40066a4de536f72491e3916
Author: Kengo Seki <se...@apache.org>
AuthorDate: Thu Dec 1 02:06:41 2022 +0900
CAMEL-18776: camel-hdfs - Fix HdfsNormalFileHandler to handle temporary file path correctly (#8803)
---
.../java/org/apache/camel/component/hdfs/HdfsNormalFileHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsNormalFileHandler.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsNormalFileHandler.java
index 372cb06be39..753b0d4224c 100644
--- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsNormalFileHandler.java
+++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsNormalFileHandler.java
@@ -176,7 +176,7 @@ class HdfsNormalFileHandler extends DefaultHdfsFile<OutputStream, InputStream> {
return outputDest;
}
- return new File(outputDest, fileName);
+ return outputDest;
} catch (IOException ex) {
throw new RuntimeCamelException(ex);
}