[ https://issues.apache.org/jira/browse/CAMEL-6181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-6181. -------------------------------- Resolution: Fixed Fix Version/s: 2.10.5 Assignee: Claus Ibsen > FTP Upload fails due to wrong path separator used in FtpOperations > ------------------------------------------------------------------ > > Key: CAMEL-6181 > URL: https://issues.apache.org/jira/browse/CAMEL-6181 > Project: Camel > Issue Type: Bug > Components: camel-ftp > Affects Versions: 2.10.3 > Environment: Windows > Reporter: Kai Hackemesser > Assignee: Claus Ibsen > Fix For: 2.10.5 > > Original Estimate: 4h > Remaining Estimate: 4h > > I try to send files via FTP to a remote server. During the upload sequence it > checks if the remote directory exists by changing the current work directory > to the target, then tries to go back to the current work directory (method > FtpOperations#buildDirectory). the call at line 284 fails ( > {{changeCurrentDirectory(originalDirectory)}} because in that method at line > 654 {{path = FileUtil.compactPath(path);)) is called, which replaces the all > forward slashes with File.SEPARATOR - by doing this it also ignores the > separator setting in the endpoint uri. The returned directory is not valid on > the remote server which then throws a 550 at me. > To fix it line 654 must use the correlated method accepting a separator char > produced from the endpoint settings. Or the path needs to be separator-fixed > later in the call stack. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira