?[9.0B4, 9.0B5] FTP file content synchronization

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

zdenek
Junior Member
Junior Member
Posts: 11
Joined: 2016-07-14, 15:06 UTC

?[9.0B4, 9.0B5] FTP file content synchronization

Post by *zdenek »

I am using a few Tabs.
In one of them I connect to a FTP server and synchronize a file content, TotalCmd asks me if I want to overwrite the synchronized file.
I choose "Yes" and when the file list is reloaded the TotalCmd shows me the last local folder (the folder used before FTP connection).

I tested the same with the FTPS connection and it works fine, it reloads and shows the folder at FTPS server.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Do you see anything in the FTP log? Maybe the connection is lost, or there is some other kind of error causing TC to return to the local directory?
Author of Total Commander
https://www.ghisler.com
zdenek
Junior Member
Junior Member
Posts: 11
Joined: 2016-07-14, 15:06 UTC

Post by *zdenek »

I am using a passive mode if it helps you.

But the connection seems to be still alive - if I click FTP server button [0] in the disk bar nothing is reconnecting, it shows immediately the file list at FTP server.

Here is the file synchronization log (I had to translate a few terms from Czech to English so may be some of them are little bit different than in original)

Code: Select all

PWD
257 "/www" is the current directory
Directory
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (99,99,99,99,192,246).
MLSD
150 Opening ASCII mode data connection for MLSD
Download
Waiting for server...
226 Transfer complete
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (99,99,99,99,147,50).
RETR phpinfo.php
150 Opening BINARY mode data connection for phpinfo.php (23 bytes)
Download
Waiting for server...
226 Transfer complete
Copied (15.07.2016 18:55:41): ftp://some-ftp-server.com/www/phpinfo.php -> C:\Users\zdenek\AppData\Local\Temp\_tc\phpinfo.php 23 bytes
CWD /www/
250 CWD command successful
PWD
257 "/www" is the current directory
PASV
227 Entering Passive Mode (99,99,99,99,131,70).
STOR phpinfo.php
150 Opening BINARY mode data connection for phpinfo.php
Transferring: 21 bytes
226 Transfer complete
SIZE phpinfo.php
213 21
Copied (15.07.2016 18:55:48): C:\Users\zdenek\AppData\Local\Temp\_tc\phpinfo.php -> ftp://some-ftp-server.com/www/phpinfo.php 21 bytes, 0 kB/s
PWD
257 "/www" is the current directory
CWD /www
250 CWD command successful
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't see anything bad in the log. I can't reproduce this problem either.

Can anyone else reproduce it?
Author of Total Commander
https://www.ghisler.com
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

I tried, but no success. Now I'm starting to doubt if I understand the report correctly. Is it about Commands->Synchronize Dirs or File->Compare By Contents and editing file from there? A little more detailed description would probably help, perhaps making a video it, if possible...
zdenek
Junior Member
Junior Member
Posts: 11
Joined: 2016-07-14, 15:06 UTC

Post by *zdenek »

I prepared a video I hope it is well visible

https://youtu.be/PekDLIPCloc

If you can't reproduce it, it must be something on my computer..
New operating system Windows 10? Or for example an old ini file?
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

No luck here, I'm doing exactly the same thing and it does not happen.

But you can easily test if it's something in your current ini files. Start TC with command line parameters like this:

totalcmd64.exe /i=c:\test\tc.ini /f=c:\test\ftp.ini

It will use specified ini files (it will create new ones if they don't exist) and won't touch your regular ones.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

What the video shows isn't filesync, it's "Compare by content". It looks like you use the editor and then re-upload the file by saving it?
Author of Total Commander
https://www.ghisler.com
zdenek
Junior Member
Junior Member
Posts: 11
Joined: 2016-07-14, 15:06 UTC

Post by *zdenek »

You are right. It is "Compare by content" - I am sorry for unclear specification. I use it for the file content synchronization :-)

I always check the modification in the files, click the "Edit mode" button and manually synchronize the content of files (on video from right panel to left panel).
After that I save the left file and totalcmd offers me to transfer this file (from a temporary copy) to FTP.
I give Yes, the file is uploaded but the left totalcmd panel is switched to the local folder.

I tried also the empty ini files (totalcmd64.exe /i=c:\test\tc.ini /f=c:\test\ftp.ini) and it is also switching to a local folder.

I tested it on working PC with Windows 10 x64 + (TC9b5x64 and TC9b6x64), in the passive as well as in active mode and the result is still the same. With the same configuration I tested als FTPS and it do also the same.

I tried it also on my home PCs - one with Win7x64 (TC9b5x64), second with Wine in Linux and there stay the FTP folder in the left panel.

So it seems to be caused by Windows 10.

Now I am upgrading the PC with Win7 to Win10 so when it is done I will let you know if there is the same problem.
zdenek
Junior Member
Junior Member
Posts: 11
Joined: 2016-07-14, 15:06 UTC

Post by *zdenek »

I confirm the same behavior at the upgraded computer.

The same TC ini file, with Win7x64 no problem, with Win10x64 is the panel switched to local folder.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

It's hard to imagine how different system version could influence something like this, but it looks like it's really it. I can reproduce it under Windows 10 too.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

How long do you edit the two files in the compare tool? Some servers have a timeout of a few minutes - if it takes you longer, they will kick you out.
Author of Total Commander
https://www.ghisler.com
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

That's not it. I'm just testing it, so it takes me under ten seconds. And when I switch back to FTP and press F2 to reload directory, there's no reconnection in log.

A little update, I tried it with Windows 8.1 and it happens there too.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe I just misunderstand what you do? Do you select a file in the left and right panel and choose "Compare by content", edit the files, and then save them?

If yes, when exactly is the directory lost?
Author of Total Commander
https://www.ghisler.com
zdenek
Junior Member
Junior Member
Posts: 11
Joined: 2016-07-14, 15:06 UTC

Post by *zdenek »

Select a file in the left and right panel, choose "Compare by content", edit the file on FTP server, and then save it.

Close the "Compare by content" tool and there is shown a dialog window with question if you want to transfer the modified file to the FTP server.

Choose "Yes", the file transfer is starting and when it is done, the FTP directory is lost.
Post Reply