Can't download linux symbolic links

Here you can submit your bug reports for FTP Rush.
mtmfish
Posts: 7
Joined: Sat Dec 25, 2010 4:22 am

Can't download linux symbolic links

Post by mtmfish »

When download a symbolic links such as

lib.so -> lib.so.5

FTP Rush will CWD it and fails.

I found FileZilla would first try CWD, if fails then RETR it directly.

Could FTP Rush resolve it?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Can't download linux symbolic links

Post by FTP »

Please paste your log
mtmfish
Posts: 7
Joined: Sat Dec 25, 2010 4:22 am

Re: Can't download linux symbolic links

Post by mtmfish »

[1] Connecting to 192.168.1.101
[1] Connecting to 192.168.1.101:21
[1] 220 (vsFTPd 2.0.1)
[1] USER test
[1] 331 Please specify the password.
[1] PASS (hidden)
[1] 230 Login successful.
[1] SYST
[1] 215 UNIX Type: L8
[1] TYPE A
[1] 200 Switching to ASCII mode.
[1] REST 1
[1] 350 Restart position accepted (1).
[1] REST 0
[1] 350 Restart position accepted (0).
[1] FEAT
[1] 211-Features:
[1] EPRT
[1] EPSV
[1] MDTM
[1] PASV
[1] REST STREAM
[1] SIZE
[1] TVFS
[1] 211 End
[1] PWD
[1] 257 "/home/test"
[1] PASV
[1] 227 Entering Passive Mode (192.168.1.101,33,48)
[1] Opening data connection IP: 192.168.1.101 PORT: 8496
[1] LIST
[1] 150 Here comes the directory listing.
[1] 226 Directory send OK.
[1] List Complete: 342 bytes in 0.02 seconds (22.80KB/s)
[1] CWD /usr/lib/
[1] 250 Directory successfully changed.
[1] PWD
[1] 257 "/usr/lib"
[1] PASV
[1] 227 Entering Passive Mode (192.168.1.101,234,242)
[1] Opening data connection IP: 192.168.1.101 PORT: 60146
[1] LIST
[1] 150 Here comes the directory listing.
[1] 226 Directory send OK.
[1] List Complete: 1,498 bytes in 0.02 seconds (99.87KB/s)
[T] CWD /usr/lib/lib.so
[T] 550 Failed to change directory.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Can't download linux symbolic links

Post by FTP »

Hi,

Strange logs, what did you do before the last two lines? Change work directory?
mtmfish
Posts: 7
Joined: Sat Dec 25, 2010 4:22 am

Re: Can't download linux symbolic links

Post by mtmfish »

Yes, after login, change work directory to /usr/lib, then get lib.so, it's a symbolic link to /usr/lib/lib.so.5.

The symbolic link was created by using ln -s command.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Can't download linux symbolic links

Post by FTP »

But I think when you select a file to download, the ftp log will be "RETR xxxxx".
mtmfish
Posts: 7
Joined: Sat Dec 25, 2010 4:22 am

Re: Can't download linux symbolic links

Post by mtmfish »

Yes, I know that.

I mean, FTP Rush will treat a symbolic link file as a folder, so it will try to CWD, then fails.

Actually, most FTP client will do this, I tried FlashFXP and FileZilla, they have same behavior.

FlashFXP failed same as FTP Rush.

But FileZilla fails then RETR that symbolic file automatically. I like this behavior.

This a common issue I think you can reproduce it easily.

Thanks.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Can't download linux symbolic links

Post by FTP »

But we created a symbolic link and tested it, no problem found, FTP Rush can download it correctly:
ln -s SourcePath DestPath
mtmfish
Posts: 7
Joined: Sat Dec 25, 2010 4:22 am

Re: Can't download linux symbolic links

Post by mtmfish »

Hmm.............

I used CentOS 5.5, but I think it would be no relationship with different linux editions.

Another, I found it's OK when downloading via SFTP(FTP via SSH), but not OK when downloading via FTP.

Any body else have same problem?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Can't download linux symbolic links

Post by FTP »

We used CentOS 5.1, how did you create the symbolic links?
Post Reply