Issue Details (XML | Word | Printable)

Key: NET-209
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Critical Critical
Assignee: Unassigned
Reporter: Yousei Itou
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

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

Created: 31/Mar/08 02:03 AM   Updated: 25/Jun/08 10:50 AM
Return to search
Component/s: None
Affects Version/s: 1.4
Fix Version/s: None

Time Tracking:
Not Specified

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).
Issue Links:
Duplicate
 

Resolution Date: 31/Mar/08 02:10 AM


 Description  « Hide
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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Yousei Itou added a comment - 31/Mar/08 02:10 AM
Sorry, Same issue already exists(NET-188).