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 <[email protected]>
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);
         }

Reply via email to