commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allan Brighton <Allan.Brigh...@t-online.de>
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
DefaultFTPFileEntryParserFactory.createFileEntryParser(key):

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?

Thanks,
Allan



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message