You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/06/19 15:45:34 UTC

DO NOT REPLY [Bug 29689] New: - Unix parser does not handle special files.

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=29689>.
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=29689

Unix parser does not handle special files.

           Summary: Unix parser does not handle special files.
           Product: Commons
           Version: 1.2 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: neil@cloudnine.net.nz


At present, the Unix parser (v 1.2.1 of commons-net) doesn't match against a
file with a leading 's'. 

A side effect is that the parser returns null back to engine.getFiles() (because
the listed line from the FTP server doesn't match the regex), which is then
added to the temp LinkedList being created.

The result is, you end up with null FTPFile instances in the collection returned
by listFiles().

I'm not sure if this is by design or not.

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