Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 13155 invoked from network); 9 Mar 2009 11:38:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 11:38:03 -0000 Received: (qmail 95244 invoked by uid 500); 9 Mar 2009 11:38:03 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 95218 invoked by uid 500); 9 Mar 2009 11:38:03 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 95202 invoked by uid 500); 9 Mar 2009 11:38:03 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 95199 invoked by uid 99); 9 Mar 2009 11:38:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 04:38:02 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 11:38:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E0D15234C003 for ; Mon, 9 Mar 2009 04:37:39 -0700 (PDT) Message-ID: <586581838.1236598659919.JavaMail.jira@brutus> Date: Mon, 9 Mar 2009 04:37:39 -0700 (PDT) From: "Paddy Daly (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1428) SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds In-Reply-To: <1184226389.1236272984964.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50339#action_50339 ] Paddy Daly commented on CAMEL-1428: ----------------------------------- only after seeing your comments above, will retry > 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-M1 > > Attachments: camel-error.txt, camel-error2.txt, camel-error3.txt, camel-error4.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.