Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 38869 invoked from network); 7 Mar 2009 15:16:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2009 15:16:01 -0000 Received: (qmail 35086 invoked by uid 500); 7 Mar 2009 15:16:01 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 35056 invoked by uid 500); 7 Mar 2009 15:16:01 -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 35045 invoked by uid 500); 7 Mar 2009 15:16:01 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 35042 invoked by uid 99); 7 Mar 2009 15:16:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2009 07:16:00 -0800 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; Sat, 07 Mar 2009 15:16:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DBE63234C4AF for ; Sat, 7 Mar 2009 07:15:39 -0800 (PST) Message-ID: <903869978.1236438939899.JavaMail.jira@brutus> Date: Sat, 7 Mar 2009 07:15:39 -0800 (PST) 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=50307#action_50307 ] Paddy Daly commented on CAMEL-1428: ----------------------------------- Thanks Claus I'm heading out now. Will probably not get to try that until Monday. Have a good weekend. -Paddy > 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.