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/11/29 00:55:52 UTC
DO NOT REPLY [Bug 32423] New: -
FTP component fails to throw error when ftp site fails to list contents properly
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=32423>.
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=32423
Summary: FTP component fails to throw error when ftp site fails
to list contents properly
Product: Commons
Version: 1.2 Final
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P4
Component: Net
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: davidparks21@yahoo.com
Hi, below I've attached a copy of an FTP session taken through the command
prompt. This ftp server has a problem were every second command issued to it
fails. It first issues a 200 command successful, but then fails with 425 Can't
open data connection. The result from a call to FTPClient.listFiles() and
FTPClientlistFiles(String) returns an array of 0 files. Given this case it
should throw an IOException in this case. I imagine it doesn't probably because
of the 200 command successful that comes up in this case, but I haven't gone
through the source to verify it.
ftp> dir
200 command successful
150 Opening ASCII data connection for directory listing
drwxr-x--- 2 cwftp System 0 Nov 19 22:51 .
drwxr-x--- 2 cwftp System 0 Nov 19 22:51 ..
226 transfer complete
ftp: 119 bytes received in 0.00Seconds 119000.00Kbytes/sec.
ftp> dir
200 command successful
425 Can't open data connection.
ftp> dir
200 command successful
150 Opening ASCII data connection for directory listing
drwxr-x--- 2 cwftp System 0 Nov 19 22:51 .
drwxr-x--- 2 cwftp System 0 Nov 19 22:51 ..
226 transfer complete
ftp: 119 bytes received in 0.00Seconds 119000.00Kbytes/sec.
ftp> dir
200 command successful
425 Can't open data connection.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org