commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] [Reopened] (NET-555) Support required for 3pp FTP client for java application
Date Fri, 26 Sep 2014 04:16:33 GMT


V RAMANA REDDY reopened NET-555:

Hi Sebb,

Thanks a lot.

Our test case is to connect to a target server location and delete files which are older than
30 minutes.

root@amazon> ls -lrt
total 17496
-rw-r--r--   1 root     root     4464128 Mar 31 10:24 ROPCRFILE-0000000003
-rw-r--r--   1 root     root     4464128 Apr 21 11:24 ROPCRFILE-0000000004
-rwxr-xr-x   1 root     root         512 Sep 21 11:24 ROPCRFILE-0000000222
-rw-r--r--   1 root     root       11264 Sep 26 08:16 ROPCRFILE-0000000223

>From the 'ls -ltr' ouput , the dates of creation of the files are visible.

But when we are printing the FTPFile object retrived from listFiles of FTPClient ,the timestamp
displayed is 1 month and 5.30 hrs older than the actual timestamp of the file.

	FTPClient m_client=new FTPClient();
	final FTPFile[] files = m_client.listFiles(path);
      for (int i = 0; i < files.length; i++) {
        if (files[i] != null && !files[i].isDirectory()) {
		 System.out.println("File Object is " + files[i]);
	Output :
    File Object is 31-02-14  04:54AM              4464128 ROPCRFILE-0000000003
    File Object is 21-03-14  05:54AM              4464128 ROPCRFILE-0000000004
    File Object is 21-08-14  05:54AM                  512 ROPCRFILE-0000000222
    File Object is 26-08-14  02:46AM                11264 ROPCRFILE-0000000223
Also another issue observed is that for the file "ROPCRFILE-0000000003" , date is March 31
but in code the object returns 1 month old date modifying the same to February 31 which is
an invalid date resulting in the getTimeStamp method of FTPFile returning NULL.

Due to this erroneous timestamp , deletion of files are not happening as expected.

Could you please help us in this regard by letting us know whether it got resolved in the
later versions?

Best Regards,

> Support required for 3pp FTP client for java application
> --------------------------------------------------------
>                 Key: NET-555
>                 URL:
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 2.2
>            Reporter: V RAMANA REDDY
> One of our product is using "Jakarta Commons Net Ftp 2.2 (apache) " 3pp FTP client for
java application.
> But we are facing an issue with this 3pp ftp client when time stamp is being fetched
for the files. It is returning 1 month and five and half hour old time than the original one.
> Could you please let us know whether this is a known issue in version 2.2.
> And also please let us know whether it is resolved in the later version of the product.

This message was sent by Atlassian JIRA

View raw message