Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-209

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • 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).

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yosei Yousei Itou
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: