The bug only happens when:
i) file in subfolder
ii) temp file is created
iii) Camel running on Window & SFTP server running on LINUX
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
- There is no exception throw in 2.19.0, even though the file delivered into incorrect location.
- In 2.17.3, exception throw at org.apache.camel.component.file.remote.SftpOperations.renameFile(SftpOperations.java:431)[camel-ftp-2.17.3.jar:2.17.3]
- Without tempFileName, it works perfectly. Issue is around the rename area.