You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by "Niklas Gustavsson (JIRA)" <ji...@apache.org> on 2006/12/21 16:47:24 UTC

[jira] Closed: (FTPSERVER-42) Listing of non-existing files cause the problems

     [ http://issues.apache.org/jira/browse/FTPSERVER-42?page=all ]

Niklas Gustavsson closed FTPSERVER-42.
--------------------------------------

    Resolution: Fixed
      Assignee: Niklas Gustavsson

This bug is now fixed. FtpServer will now return an empty listing and a 226 return code.

> Listing of non-existing files cause the problems
> ------------------------------------------------
>
>                 Key: FTPSERVER-42
>                 URL: http://issues.apache.org/jira/browse/FTPSERVER-42
>             Project: FtpServer
>          Issue Type: Bug
>            Reporter: Evgueni Smoliar
>         Assigned To: Niklas Gustavsson
>         Attachments: patch1.txt, patch2.txt
>
>
> list of non-existing files cause connection problems in stead of just returing empty result list
> File Not exists is not syntax error!
> org.apache.ftpserver.DirectoryLister.java
> ----
> all calls like :
>         try {
>             files = m_fileSystemView.listFiles(m_file);
>         }
>         catch(FtpException ex) {
>         }
>         if(files == null) {
>             return false;
>         }
> should be changed to :
>         try {
>             files = m_fileSystemView.listFiles(m_file);
>         }
>         catch(FtpException ex) {
>         }
>         if(files == null) {
>             return true;
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira