Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 261E385A4 for ; Tue, 30 Aug 2011 15:04:02 +0000 (UTC) Received: (qmail 79241 invoked by uid 500); 30 Aug 2011 15:04:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 78811 invoked by uid 500); 30 Aug 2011 15:04:00 -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 78352 invoked by uid 99); 30 Aug 2011 15:03:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 15:03:59 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 15:03:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D0764D7862 for ; Tue, 30 Aug 2011 15:03:37 +0000 (UTC) Date: Tue, 30 Aug 2011 15:03:37 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <1730547066.7810.1314716617850.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1691887188.13437.1314275729136.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (NET-420) Retrieving files from AS400 FTP systems returns null timestamps in FTPFile.getTimestamp 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-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated NET-420: --------------------- Priority: Minor (was: Critical) > Retrieving files from AS400 FTP systems returns null timestamps in FTPFile.getTimestamp > --------------------------------------------------------------------------------------- > > Key: NET-420 > URL: https://issues.apache.org/jira/browse/NET-420 > Project: Commons Net > Issue Type: Bug > Components: FTP > Affects Versions: 2.0, 3.0.1 > Environment: Commons Net 2.0 > FTP System: AS400 systems > Reporter: Ramya Rajendiran > Priority: Minor > > We are trying to list files from AS400 systems and retrieve the timestamps from these files using the following code: > FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_AS400); > conf.setDefaultDateFormatStr("MM/dd/yy HH:mm:ss"); > ftpClient.configure(conf); > ftpClient.connect(hostName); > FTPFile[] file = ftpClient.listFiles(remoteFileName); > Calendar timeStamp = files[0].getTimestamp(); > timeStamp returned is always null. > I have also tried various setting other parsers.. but that also does not work: > FTPListParseEngine engine = ftpClient.initiateListParsing("org.apache.commons.net.ftp.parser.OS400FTPEntryParser",remoteFileName); > FTPFile[] files = engine.getNext(25); > The LIST command which is used internally in the FTPClient retrieves the timestamps successfully. However after parsing the FTPFile has a null value for the timestamp field. > I tried the latest commons net 3.0.1 and the problem still exists. > Please help us fix this problem. It is critical to us. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira