Cherry Ngai created CAMEL-11387:
-----------------------------------
Summary: SFTP is delivered into incorrect location, without
exception (file in subfolder + temp file is created + Camel running on Window &
SFTP server running on LINUX)
Key: CAMEL-11387
URL: https://issues.apache.org/jira/browse/CAMEL-11387
Project: Camel
Issue Type: Bug
Components: camel-sftp
Affects Versions: 2.19.0
Environment: camel is running on Window, and SFTP server is LINUX
Reporter: Cherry Ngai
The bug only happens when:
i) file in subfolder
ii) temp file is created
iii) Camel running on Window & SFTP server running on LINUX
Route Configuration:
from("file://sourceFolder?recursive=true&delay=60000").
to("sftp://cngai@vahcld01armval?tempFileName=${file:onlyname}.part");
NOTES: added separator=UNIX or AUTO, I got the same issue.
Window Local File: sourceFolder/myfolder1/myfolder2/test.txt
FTPS Remote File Delivered: $linuxServer/myfolder1myfolder2test.txt
NOTES:
* There is no exception throw, even though the file delivered into incorrect
location
* Without tempFileName, it works perfectly. Issue is around the rename area.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)