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:24 UTC

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


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

commit 269f34da8fb08b43101af07c485aa3af56511d4d
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);
         }