You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Paddy Daly (JIRA)" <ji...@apache.org> on 2009/03/05 18:09:45 UTC
[jira] Updated: (CAMEL-1428) SftpConsumer :
GenericFileRenameProcessStrategy - String index out of bounds
[ https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paddy Daly updated CAMEL-1428:
------------------------------
Attachment: camel-error.txt
> SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds
> ----------------------------------------------------------------------------
>
> Key: CAMEL-1428
> URL: https://issues.apache.org/activemq/browse/CAMEL-1428
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-ftp
> Affects Versions: 2.0.0
> Environment: Windows XP
> Reporter: Paddy Daly
> Attachments: camel-error.txt
>
>
> While trying to consume a file via SFTP and using the moveExpression to move the file into a done folder a renameException is thrown.
> In GenericFile the relativeFileName reads something like the following. /incoming/test/file1.txt
> When it tries to call this code and exception is thrown because File.separator is '\' in a windows environment.
> String relative = relativeFileName.substring(0, relativeFileName.lastIndexOf(File.separator));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.