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:06:47 UTC

[camel] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 758c74859e2 CAMEL-18776: camel-hdfs - Fix HdfsNormalFileHandler to handle temporary file path correctly (#8803)
758c74859e2 is described below

commit 758c74859e2b123723b48806422a88afce206380
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 f091eef62f7..75bddd4866a 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);
         }