[jira] Created: (NET-209) FTPClient.listFiles can't parse files which modified on (leap-year's)2/29.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (NET-209) FTPClient.listFiles can't parse files which modified on (leap-year's)2/29.

Thomas BELOT (Jira)
FTPClient.listFiles can't parse files which modified on (leap-year's)2/29.
--------------------------------------------------------------------------

                 Key: NET-209
                 URL: https://issues.apache.org/jira/browse/NET-209
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 1.4
         Environment: commons-net1.4.1.jar and jakarta-oro-2.0.8.jar
FTPClient is running on windows xp and jdk1.6.0.
FTPClient connects vsftp on Fedora Core 4(linux).
            Reporter: Yousei Itou
            Priority: Critical


The files modified on (leap-year's)2/29 seem to be null when listFiles called.

Code:
FTPClient client =.. // create client. and connect.
FTPFile files[] = client.listFiles();
for (FTPFile file : files) {
  System.out.println(file);
}
client.disconnect();

Result:
-rw-rw-r--    1 510      510        605555 Jan 31 20:32 file_1.csv
-rw-rw-r--    1 510      510        470976 Jan 30 20:54 file_2.csv
null
-rw-rw-r--    1 510      510        468401 Jan 31 20:36 file_4.csv
null
-rw-rw-r--    1 510      510        488822 Jan 31 20:44 file_6.csv
-rw-rw-r--    1 510      510        365192 Mar 31 01:50 file_7.csv


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (NET-209) FTPClient.listFiles can't parse files which modified on (leap-year's)2/29.

Thomas BELOT (Jira)

     [ https://issues.apache.org/jira/browse/NET-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yousei Itou closed NET-209.
---------------------------

    Resolution: Duplicate

Sorry, Same issue already exists(NET-188).

> FTPClient.listFiles can't parse files which modified on (leap-year's)2/29.
> --------------------------------------------------------------------------
>
>                 Key: NET-209
>                 URL: https://issues.apache.org/jira/browse/NET-209
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: commons-net1.4.1.jar and jakarta-oro-2.0.8.jar
> FTPClient is running on windows xp and jdk1.6.0.
> FTPClient connects vsftp on Fedora Core 4(linux).
>            Reporter: Yousei Itou
>            Priority: Critical
>
> The files modified on (leap-year's)2/29 seem to be null when listFiles called.
> Code:
> FTPClient client =.. // create client. and connect.
> FTPFile files[] = client.listFiles();
> for (FTPFile file : files) {
>   System.out.println(file);
> }
> client.disconnect();
> Result:
> -rw-rw-r--    1 510      510        605555 Jan 31 20:32 file_1.csv
> -rw-rw-r--    1 510      510        470976 Jan 30 20:54 file_2.csv
> null
> -rw-rw-r--    1 510      510        468401 Jan 31 20:36 file_4.csv
> null
> -rw-rw-r--    1 510      510        488822 Jan 31 20:44 file_6.csv
> -rw-rw-r--    1 510      510        365192 Mar 31 01:50 file_7.csv

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.