Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

shadowlmd

Trace attached.
martin

Re: Bug in FTP protocol prevents changing directory

I have sent you an email with a debug version of WinSCP to address you have used to register on this forum.
shadowlmd

Re: Bug in FTP protocol prevents changing directory

martin wrote:

Can you email me a complete log file, showing both entering regular subfolder and symlink?

After experimenting with different FTP servers I figured out it was not a problem with symlinks at all. Log above shows that after getting "/mnt/sdcard" as current directory, WinSCP tries to change directory to "/mnt/sdcard/mnt/sdcard" which of course doesn't exist. Same happens when it tries to enter regular directories (see new log, /system is a regular directory). That's probably something specific to SwiFTP server, because other FTP servers for Android work fine with WinSCP (apart from that one in my other bug report), but still all other FTP clients work perfectly with SwiFTP server.

Anyway, while I was making a full log as requested, after few directory changes WinSCP interface became unresponsive. I waited few minutes before closing window, no new entries were written to log file.
martin

Re: Bug in FTP protocol prevents changing directory

Can you email me a complete log file, showing both entering regular subfolder and symlink?
shadowlmd

Bug in FTP protocol prevents changing directory

WinSCP in FTP mode fails to enter symlinked directories on some FTP servers. I am using SwiFTP on my android device and all FTP software except WinSCP works well with it. I made a debug log which clearly shows a bug in change directory code:
. 2012-01-13 02:57:39.004 Changing directory to "sdcard".

> 2012-01-13 02:57:39.004 CWD sdcard
< 2012-01-13 02:57:39.051 250 CWD successful
. 2012-01-13 02:57:39.051 Got reply 1 to the command 16
. 2012-01-13 02:57:39.051 Getting current directory name.
> 2012-01-13 02:57:39.051 PWD
< 2012-01-13 02:57:39.057 257 "mnt/sdcard"
. 2012-01-13 02:57:39.057 Got reply 1 to the command 16
. 2012-01-13 02:57:39.057 Retrieving directory listing...
> 2012-01-13 02:57:39.057 CWD /mnt/sdcard/mnt/sdcard/
< 2012-01-13 02:57:39.064 550 Can't CWD to invalid directory
. 2012-01-13 02:57:39.064 Could not retrieve directory listing
. 2012-01-13 02:57:39.065 Got reply 4 to the command 2
* 2012-01-13 02:57:39.079 (ECommand) Error listing directory 'mnt/sdcard'.
* 2012-01-13 02:57:39.079 Could not retrieve directory listing
* 2012-01-13 02:57:39.079 Can't CWD to invalid directory


I attached full log file as well.