[ 
http://issues.apache.org/jira/browse/FTPSERVER-42?page=comments#action_12430366 
] 
            
Mark Reynolds commented on FTPSERVER-42:
----------------------------------------

vsftpd on Linux returns 226:

C:\>ftp ftp.suse.com
Connected to ftp.suse.com.
220 "Welcome to the SUSE ftp server: Please login as user 'ftp'"
User (ftp.suse.com:(none)): anonymous
331 Please send your email address as a password.
Password:
230 Login successful. Have a lot of fun.
ftp> ls /foo.bar
200 PORT command successful. Consider using PASV.
150 Listing
226 Directory send OK.
ftp> quit
221 Goodbye.

WS_FTP returns 226:

C:\>ftp ftp.ipswitch.com
Connected to ftp.ipswitch.com.
220 ftp6.ipswitch.com X2 WS_FTP Server 5.0.4 (2147660457)
User (ftp.ipswitch.com:(none)): anonymous
331 Password required
Password:
230 user logged in
ftp> ls /foo.bar
200 command successful
150 Opening ASCII data connection for directory listing
226 transfer complete
ftp> quit
221 Good-Bye

ProFTPD Server returns 450:

C:\>ftp ftp.proftpd.org
Connected to ftp.proftpd.org.
220 ProFTPD 1.3.0 Server (proftpd.org Project) [81.223.20.36]
User (ftp.proftpd.org:(none)): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
ftp> ls /foo.bar
200 PORT command successful
450 /foo.bar: No such file or directory
ftp> quit
221 Goodbye.

Serv-U FTP Server returns 550:

C:\>ftp ftp.serv-u.com
Connected to ftp.serv-u.com.
220 Serv-U FTP Server v6.3 for WinSock ready...
User (ftp.serv-u.com:(none)): anonymous
331 User name okay, please send complete E-mail address as password.
Password:
230 User logged in, proceed.
ftp> ls /foo.bar
200 PORT Command successful.
550 /foo.bar: No such file or directory.
ftp> quit
221 Goodbye!

Microsoft FTP Service returns 550:

C:\>ftp ftp.microsoft.com
Connected to ftp.microsoft.com.
220 Microsoft FTP Service
User (ftp.microsoft.com:(none)): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230-Welcome to FTP.MICROSOFT.COM. Also visit http://www.microsoft.com/downloads.
230 Anonymous user logged in.
ftp> ls /foo.bar
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
550 /foo.bar: The system cannot find the file specified.
ftp> quit
221 Thank you for using Microsoft products.

Globalscape FTP Server returns 550:

C:\>ftp ftp.cuteftp.com
Connected to ftp.cuteftp.com.
220 GlobalSCAPE Secure FTP Server (v. 3.0)
User (ftp.cuteftp.com:(none)): anonymous
331 Password required for anonymous.
Password:
230 Login OK. Proceed.
ftp> ls /foo.bar
200 Command okay.
550 Permission denied.
ftp> quit
221 Service closing control connection.

NcFTPd Server returns 550:

C:\>ftp ftp.ncftp.com
Connected to ncftp.com.
220 ncftpd.com NcFTPd Server (licensed copy) ready.
User (ncftp.com:(none)): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230-You are user #1 of 16 simultaneous users allowed.
230-
230 Logged in anonymously.
ftp> ls /foo.bar
200 PORT command successful.
550 No such file or directory.
ftp> quit
221 Goodbye.




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

        

Reply via email to