PDA

View Full Version : Unexpected directory change when open saved FTP session


neochang
25-Sep-2009, 03:21 AM
Hi there,
I'm using the latest version of BC3(3.1.7 Build 10865). But I encounter a problem when openning a saved FTP folder comparison session.

When I double click the saved session in the saved session list, it connects the FTP server, logs in correctly and changes to the right directory that I configered.

But then there seems to be an unexpected command " CWD /" sent to the FTP server. So the directory changed back to the root directory which is not what I set in the session.

e.g. The directory settings of the saved session are as follows:
Left folder: D:\powerserver_work_dir\神仙OL\Tarot_Data
Right folder:ftp://Neo@192.168.0.200/我们的工具/塔罗客户端

when the initial background content comparison completes the current folder of right folder will always be "ftp://Neo@192.168.0.200/".
No matter how many times I reopen the session, the situation remains all the same.

The only way I can make it back to the right folder is to select "Browse" button in the session page and click "Click & Browse" button to reset the Initial remote folder BEFORE I open the saved session.

The FTP server I'm using is Serv-U v8.2.

Please look into the problem 'cause this is REALLY boring..Thanks very much~!

P.S. NOT every saved session has such a problem, some session with different remote folders is OK.

The BC log is as follows:
2009/9/25 14:23:48 Username: zw\Neo
2009/9/25 14:23:49 Stat> Connected.
2009/9/25 14:23:49 Recv> 220 Serv-U FTP Server v8.2 ready...
2009/9/25 14:23:49 Sent> HOST [192.168.0.200]
2009/9/25 14:23:49 Recv> 530 Domain (host) not found.
2009/9/25 14:23:49 Sent> USER Neo
2009/9/25 14:23:49 Recv> 331 User name okay, need password.
2009/9/25 14:23:49 Sent> PASS ********
2009/9/25 14:23:49 Recv> 230 User logged in, proceed.
2009/9/25 14:23:49 Sent> FEAT
2009/9/25 14:23:49 Recv> 211-Extensions supported
2009/9/25 14:23:49 UTF8
2009/9/25 14:23:49 OPTS MODE;MLST;UTF8
2009/9/25 14:23:49 CLNT
2009/9/25 14:23:49 CSID Name; Version;
2009/9/25 14:23:49 HOST domain
2009/9/25 14:23:49 SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP
2009/9/25 14:23:49 AUTH TLS;SSL;TLS-C;TLS-P;
2009/9/25 14:23:49 PBSZ
2009/9/25 14:23:49 PROT
2009/9/25 14:23:49 CCC
2009/9/25 14:23:49 SSCN
2009/9/25 14:23:49 RMDA directoryname
2009/9/25 14:23:49 DSIZ
2009/9/25 14:23:49 AVBL
2009/9/25 14:23:49 MODE Z
2009/9/25 14:23:49 THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname
2009/9/25 14:23:49 REST STREAM
2009/9/25 14:23:49 SIZE
2009/9/25 14:23:49 MDTM
2009/9/25 14:23:49 MDTM YYYYMMDDHHMMSS[+-TZ];filename
2009/9/25 14:23:49 MFMT
2009/9/25 14:23:49 MFCT
2009/9/25 14:23:49 MFF Create;Modify;
2009/9/25 14:23:49 XCRC filename;start;end
2009/9/25 14:23:49 MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt; Win32.dl
2009/9/25 14:23:49 211 End (for details use "HELP commmand" where command is the command of interest)
2009/9/25 14:23:49 Sent> CLNT Beyond Compare v3.1.7
2009/9/25 14:23:49 Recv> 200 Noted.
2009/9/25 14:23:49 Sent> TYPE I
2009/9/25 14:23:49 Recv> 200 Type set to I.
2009/9/25 14:23:49 Sent> SYST
2009/9/25 14:23:49 Recv> 215 UNIX Type: L8
2009/9/25 14:23:49 Sent> SITE ZONE
2009/9/25 14:23:49 Recv> 210 UTC+480
2009/9/25 14:23:49 Sent> OPTS UTF8 ON
2009/9/25 14:23:49 Recv> 200 OPTS UTF8 is set to ON.
2009/9/25 14:23:49 Sent> PWD
2009/9/25 14:23:49 Recv> 257 "/" is current directory.
2009/9/25 14:23:49 Sent> REST 1
2009/9/25 14:23:49 Recv> 350 Restarting at 1. Send STORE or RETRIEVE.
2009/9/25 14:23:49 Sent> REST 0
2009/9/25 14:23:49 Recv> 350 Restarting at 0. Send STORE or RETRIEVE.
2009/9/25 14:23:49 Sent> CWD 我们的工具/塔罗客户端
2009/9/25 14:23:49 Recv> 250 Directory changed to /我们的工具/塔罗客户端
2009/9/25 14:23:49 Sent> PWD
2009/9/25 14:23:49 Recv> 257 "/我们的工具/塔罗客户端" is current directory.
2009/9/25 14:23:49 Sent> CWD /
2009/9/25 14:23:49 Recv> 250 Directory changed to /
2009/9/25 14:23:49 Sent> PASV
2009/9/25 14:23:49 Recv> 227 Entering Passive Mode (192,168,0,200,117,43)
2009/9/25 14:23:49 Sent> MLSD
2009/9/25 14:23:49 Recv> 150 Opening BINARY mode data connection for MLSD.
2009/9/25 14:23:49 Recv> 226 Transfer complete. 174 bytes transferred. 0.17 KB/sec.
2009/9/25 14:23:49 Load comparison: D:\powerserver_work_dir\神仙OL\Tarot_Data <-> ftp://Neo@192.168.0.200/
2009/9/25 14:23:49 Background content comparison completed in 0.48 seconds

Aaron
01-Oct-2009, 03:33 PM
If you go to the Tools menu -> FTP Profiles, select your profile, and switch the Encoding from detect to UTF-8, does that work for you?

neochang
05-Oct-2009, 02:56 AM
Thank you for your advice. I'm on my vacation now so I'll try that a few days later.
And I'll post the result after I tried.
Thanks~!

neochang
08-Oct-2009, 11:10 PM
Hi Aaron,
I've just tried your advice, switched the Encoding from Default(detect) to UTF-8 under FTP profiles, but things are all the same. It still changes the directory to "/"..
Please look into this and I'll be very appreciated~!

Aaron
09-Oct-2009, 04:38 PM
Hello,

Could you email your Support.zip to support@scootersoftware.com ?
Please also include a link back to this forum post.
You can generate it from the Help menu -> Support, Export.

Aaron
09-Oct-2009, 04:40 PM
I would also recommend trying:

-Remove any ambigious profiles from the FTP Profiles dialog, to be sure you are editing the same one that is being used. Load the FTP side in a new session using the Browse button, FTP Tab, Load button.

-Try other encodings other than Auto-Detect and UTF-8.

neochang
10-Oct-2009, 03:25 AM
Hello Aaron,

I've sent the BCSupport.zip from ackneo@gmail.com. Hope this can really help.

And I've also tried your above recommendations:

-There is only one FTP Profile in my BC settings, so I'm quite sure I was editing and using the same profile. If I Load the FTP side in a new session, which means I must reselect the FTP directory, then it is right. But If I open a new tab after that and load the saved session I mentioned in the first post, things always go wrong.. :(

-I've tried several other encodings like Unicode, Unicode(bigendian), GB18030, GB2312, ANSI, etc. But none of them could connect to the FTP Server correctly...