commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30737] - UnixFTPEntryParser returns null when timestamp is between 12:00am and 12:59am
Date Mon, 13 Sep 2004 19:43:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30737>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30737

UnixFTPEntryParser returns null when timestamp is between 12:00am and 12:59am





------- Additional Comments From juergen@jwi.de  2004-09-13 19:43 -------
I ran into this bug too with an ftp server on W2K German with

-rwxrwxrwx   1 owner    group          257112 Jun 27  0:45 testalbum.zip
drwxrwxrwx   1 owner    group               0 Aug 21  2002 testdir
drwxrwxrwx   1 owner    group               0 May 28  0:39 tmp

testalbum.zip and tmp will result in null.

I see two problems here: 

o the regex matcher will fail if there is only one field wrong. Maybe there
should be a regex call for each field, so could at least fill the correctly
parsed fields.
o in case of a failed match there should not be returned null but rather an
empty FTPFile. There was a real ftp server output line, so no need to have it
nulled. If there is a parse error, it's not the fault of the server but a bug in
the regex.

---------------------------------------------------------------------
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