ftp<->local disc sync collision together with file fil

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
gordon_b
Junior Member
Junior Member
Posts: 3
Joined: 2011-03-25, 22:32 UTC

ftp<->local disc sync collision together with file fil

Post by *gordon_b »

when i sync ftp dirs with subdirs and local drive
and compare two file from subdir, edit it and save changed file to ftp

when i sync ftp dirs with subdirs and local drive
and compare two file from subdir, edit it and save changed file to ftp

1) sync trying reread dirs/resync (why - we know what changed! especially on slow ftp)
2) while saving file total commander change curr dir to file subdir and forgot to restore original comparing dirs befor resync. and start complainig about "failed to change directory"
and show mix of two path

/ftp_dir\win_dir

ftp log (after 1st syncing / w w w / site . com and local dir)
pastebin . com / yjGU9KSs
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your report. Something seems to be wrong with the server, check this from your log:

CWD /www/site.com/1/1
250 Directory successfully changed.
PWD
257 "/www/cp.teamkill.ru/1/1"

It confirms the change, but reports a different location???
Author of Total Commander
https://www.ghisler.com
gordon_b
Junior Member
Junior Member
Posts: 3
Joined: 2011-03-25, 22:32 UTC

Post by *gordon_b »

ups.. :)

its unsecussfull "anonymizing" of real folder by replacing to site . com

so everywhere must read site . com dir

(i manually replace real site folder, but forget this such, which you find)

to reproduce bug need

1) sync 2 dirs with subdirs
2) compare some file from subdirectory and change it, and after - save remote ftp file
3) close compare file panel and syncdir reproduce to you bug
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, I see - then maybe this is the problem:
CWD /www/site.com\1
550 Failed to change directory.
PWD
257 "/www/site.com/1/1"

For some strange reason, TC sends a backslash instead of a forward slash. Can you explain what you are doing when TC sends the command with the backslash in it? Maybe you have a backslash defined somewhere in your configuration?
Author of Total Commander
https://www.ghisler.com
gordon_b
Junior Member
Junior Member
Posts: 3
Joined: 2011-03-25, 22:32 UTC

Post by *gordon_b »

i'm doing nothing special
only that i described early


my installation huge, and last 2-3 years i only update program files from new versions. so i think it play some role.
then i take clean install of TC 7.56a, and reproduce bug on it
i record a video of my actions
http://screencastle.com/watch/3afaa86eca61416369641aab0ede757e
ftp_log
http://pastebin.com/y2q0488M

new, what i see - than bug reproduce only on second level dirs
example - root of synced dirs
ftp dir
/somedir/testdir/
windir
d:\somotheredir\testdir\

and bug reproduce inly in change and update file on
/somedir/testdir/subdirlev1/subdirlev2/file.ext
d:\somotheredir\testdir\subdirlev1\subdirlev2\file.ext

or deeper subdir level

al ok on
/somedir/testdir/subdirlev1/file.ext
d:\somotheredir\testdir\subdirlev1\file.ext
and
/somedir/testdir/file.ext
d:\somotheredir\testdir\file.ext

my guess that something related to storing remote ftp files in temp directory
TEMP\_tc\testsubdir1\testsubdir2\22.php

then first slash of (root dir of synced dirs) changed to backslash
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, no idea yet what could be causing it. I will have to make more tests.
Author of Total Commander
https://www.ghisler.com
Post Reply