[jira] [Updated] (NET-420) Retrieving files from AS400 FTP systems returns null timestamps in FTPFile.getTimestamp
[ 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
[jira] [Updated] (NET-420) Retrieving files from AS400 FTP systems returns null timestamps in FTPFile.getTimestamp
[ https://issues.apache.org/jira/browse/NET-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb updated NET-420: - Affects Version/s: 3.0.1 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