Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0
-
None
-
None
-
None
-
Client Windows XP, Server unknown unix styly FTP server
Description
FTPClient is used to connect to FTP server via https, browse for files and get their age. The call to getModificationTime throws an ArrayOutOfBoundsException.
Code:
FTPClient ftpclient = new FTPClient();
ftpclient.connect(server, port);
log.debug("Connected");
if (!ftpclient.login(user, password))
log.debug("Logged in");
String[] files = ftpclient.listNames(path);
for (String f : files)
Exception:
java.lang.ArrayIndexOutOfBoundsException: 33
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534)
at org.apache.commons.net.ftp.FTP.mdtm(FTP.java:1157)
at org.apache.commons.net.ftp.FTPClient.getModificationTime(FTPClient.java:2382)
...
Attachments
Issue Links
- duplicates
-
NET-248 half-baked commands list in FTPCommand
- Closed