Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 93380 invoked from network); 27 Jan 2010 21:10:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2010 21:10:56 -0000 Received: (qmail 90755 invoked by uid 500); 27 Jan 2010 21:10:55 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 90666 invoked by uid 500); 27 Jan 2010 21:10:55 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 90656 invoked by uid 99); 27 Jan 2010 21:10:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 21:10:55 +0000 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; Wed, 27 Jan 2010 21:10:54 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85562234C1EF for ; Wed, 27 Jan 2010 13:10:34 -0800 (PST) Message-ID: <754919858.87981264626634544.JavaMail.jira@brutus.apache.org> Date: Wed, 27 Jan 2010 21:10:34 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (NET-309) FTPClient getModificationTime throws ArrayIndexOutOfBoundsException In-Reply-To: <1004529619.81451264605994802.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NET-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb resolved NET-309. ---------------------- Resolution: Duplicate Duplicates NET-248 > FTPClient getModificationTime throws ArrayIndexOutOfBoundsException > ------------------------------------------------------------------- > > Key: NET-309 > URL: https://issues.apache.org/jira/browse/NET-309 > Project: Commons Net > Issue Type: Bug > Affects Versions: 2.0 > Environment: Client Windows XP, Server unknown unix styly FTP server > Reporter: Hiran Chaudhuri > > FTPClient is used to connect to FTP server via https, browse for files and get their age. The call to getModificationTime throws an ArrayOutOfBoundsException. > Code: > FTPClient ftpclient = new FTPClient(); > ftpclient.connect(server, port); > log.debug("Connected"); > if (!ftpclient.login(user, password)) { > throw new Exception("Could not logon"); > } > log.debug("Logged in"); > String[] files = ftpclient.listNames(path); > for (String f : files) { > log.debug("Found file: ftp://" + server + ":" + port + f); > String mt = ftpclient.getModificationTime(f); > log.debug("File "+f+"was last modified "+mt); > } > Exception: > java.lang.ArrayIndexOutOfBoundsException: 33 > at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534) > at org.apache.commons.net.ftp.FTP.mdtm(FTP.java:1157) > at org.apache.commons.net.ftp.FTPClient.getModificationTime(FTPClient.java:2382) > ... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.