Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.5k views
in Java FTP by (160 points)
There is a bug in UnixFileParser.java;
If the raw string is "lrwxrwxrwx 1 root 7 Jul 18 1999 lib -> usr/lib", the Parser will throw an NumberFormatException at line 191. The cause is that the file name has more than one word. In this case, maybe the file name returned is also incorrect even if no exception is thrown.

3 Answers

0 votes
by (162k points)
Hi

Thanks for reporting this - what OS is this for? Could you post a listing of a directory we could test against?


There is a bug in UnixFileParser.java;
If the raw string is "lrwxrwxrwx 1 root 7 Jul 18 1999 lib -> usr/lib", the Parser will throw an NumberFormatException at line 191. The cause is that the file name has more than one word. In this case, maybe the file name returned is also incorrect even if no exception is thrown.
0 votes
by (160 points)
C:\Documents and Settings\ferry zhou>ftp a.cs.uiuc.edu
Connected to a.cs.uiuc.edu.
220 ftp.cs.uiuc.edu FTP server ready.
User (a.cs.uiuc.edu:(none)): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230-
230- Welcome to the University of Illinois at Urbana-Champaign,
230- Dept. of Computer Science FTP server.
230-
230-
230- USERNAME: anonymous
230- FTP FROM: ip68-226-114-194.ph.ph.cox.net
230- FTP TO: ftp.cs.uiuc.edu
230- MAX USERS: 40 (max) users allowed on this ftp server
230-
230-
230- Notice:
230- Usage of this server for illegal activities is prohibited
230- and will be prosecuted to the fullest extent of the law.
230-
230-
230 Guest login ok, access restrictions apply.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 2634
-r--r--r-- 1 root 353 Aug 31 1996 .message
dr-xr-xr-x 2 root 512 Feb 2 1999 bin
dr-xr-xr-x 2 root 512 Feb 2 1999 dev
dr-xr-xr-x 2 root 512 Feb 2 1999 etc
-rw-r--r-- 1 ftp 576224 Mar 28 07:00 files.lst
-rw-r--r-- 1 ftp 109683 Mar 28 07:00 files.lst.Z
-rw-r--r-- 1 ftp 61380 Mar 28 07:00 files.lst.gz
d-wx-wx-wx 2 ftp 2048 Mar 28 20:50 incoming
lrwxrwxrwx 1 root 7 Jul 18 1999 lib -> usr/lib
-rw-r--r-- 1 ftp 396743 Mar 28 07:00 ls-lR
-rw-r--r-- 1 ftp 90341 Mar 28 07:00 ls-lR.Z
-rw-r--r-- 1 ftp 60427 Mar 28 07:00 ls-lR.gz
drwxr-xr-x 4 ftp 512 Aug 31 1996 old
drwxr-xr-x 13 root 512 Aug 21 1998 pub
dr-xr-xr-x 2 ftp 512 Mar 28 07:00 tmp
drwxrwx--- 4 51234 512 Dec 17 2001 tower
dr-xr-xr-x 3 root 512 Feb 2 1999 usr
226 Transfer complete.
ftp: 919 bytes received in 0.04Seconds 22.98Kbytes/sec.
ftp>
0 votes
by (162k points)
This problem has been fixed in 1.4.8 which has just been released.

Categories

...