Page 1 of 2

Can't download linux symbolic links

Posted: Sat Dec 25, 2010 6:48 am
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?

Re: Can't download linux symbolic links

Posted: Sun Dec 26, 2010 3:05 am
by FTP
Please paste your log

Re: Can't download linux symbolic links

Posted: Mon Dec 27, 2010 2:09 am
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.

Re: Can't download linux symbolic links

Posted: Mon Dec 27, 2010 3:15 pm
by FTP
Hi,

Strange logs, what did you do before the last two lines? Change work directory?

Re: Can't download linux symbolic links

Posted: Tue Dec 28, 2010 6:54 am
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.

Re: Can't download linux symbolic links

Posted: Tue Dec 28, 2010 10:41 am
by FTP
But I think when you select a file to download, the ftp log will be "RETR xxxxx".

Re: Can't download linux symbolic links

Posted: Tue Dec 28, 2010 1:14 pm
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.

Re: Can't download linux symbolic links

Posted: Wed Dec 29, 2010 8:09 am
by FTP
But we created a symbolic link and tested it, no problem found, FTP Rush can download it correctly:
ln -s SourcePath DestPath

Re: Can't download linux symbolic links

Posted: Wed Dec 29, 2010 1:21 pm
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?

Re: Can't download linux symbolic links

Posted: Thu Dec 30, 2010 1:23 pm
by FTP
We used CentOS 5.1, how did you create the symbolic links?