[ 
https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50254#action_50254
 ] 

Paddy Daly commented on CAMEL-1428:
-----------------------------------

Still one more issue. I think I noticed a file path generated with .done twice.

e.g temp/files/incoming/.done/.done/file.txt 

During the move into the done folder it looks like it trying to delete it from 
the .done folder instead of the incoming folder.

- Sleeping is cheating ;-)

> 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
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: camel-error.txt, camel-error2.txt, camel-error3.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.

Reply via email to