commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allan Brighton <>
Subject Missing check for UNKNOWN
Date Fri, 20 Jul 2007 15:57:27 GMT

Hi all,

I got a ParserInitializationException from FtpClient.listFiles().
After some debugging, I found that the cause was the ftp server
returning "UNKNOWN Type: L8" as the system type (instead of something
like "UNIX Type L8").

The fix, it seems, is to add a check for "UNKNOWN" in

For example:

   if (ukey.indexOf(FTPClientConfig.SYST_UNIX) >= 0
     || ukey.indexOf("UNKNOWN") >= 0) // XXX this fixes it

Is this fix reasonable? Is it a known bug? Is there a version of commons-net
that contains this fix?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message