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

Sergey Vladimirov commented on FTPSERVER-42:
--------------------------------------------

Tested with upload.sourceforge.net:

ftp> open upload.sourceforge.net
Connected to osdn.dl.sourceforge.net.
220-********************************************************************
220- SourceForge.net FTP server - San Jose (osdn.dl.sourceforge.net)
220- Additional access is at http://osdn.dl.sourceforge.net/pub/mirrors/
220- Mirrors, try 'rsync osdn.dl.sourceforge.net::'
220-
220- Got a fat pipe and something to prove? Host a SourceForge download
220-   server! Email [EMAIL PROTECTED] for opportunities.
220-
220- On This Site:
220- /incoming                       SourceForge.net Project File Upload
220- *********************************************************************
220
User (osdn.dl.sourceforge.net:(none)): anonymous
331 Please specify the password.
Password:
230 Login successful.
ftp> dir incoming
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwx-wx-wx    2 ftp      ftp         81920 May 17 05:17 incoming
226 Directory send OK.
ftp: 66 bytes received in 0,00Seconds 66000,00Kbytes/sec.
ftp> dir incoming2
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.

It seems 226 code is used.

> Listing of non-existing files cause the problems
> ------------------------------------------------
>
>          Key: FTPSERVER-42
>          URL: http://issues.apache.org/jira/browse/FTPSERVER-42
>      Project: FtpServer
>         Type: Bug

>     Reporter: Evgueni Smoliar

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

Reply via email to