Renaming files causes file loss when ~1 is part of file name

Here you can report bugs found in Far Manager.
Post Reply
Marcos
Posts: 10
Joined: Sat 12 Dec, 2009 08:27

Renaming files causes file loss when ~1 is part of file name

Post by Marcos » Wed 25 Apr, 2012 12:40

I've noticed this bug in FAR2 and the latest nightly build of FAR3 is still affected. The issue occurs if there's a file name ending in ~1.

Steps to reproduce:
1, create a folder containing files:
a~1.ex
file.ex
file.ex2

2, select all files, press F6 to rename them to *.exe and confirm the action

Problem: instead of prompting the user for an action when a file with the same name already exists, the other file.ex2 is simply lost. Result: the folder contains only a~1.exe and file.exe.

User avatar
John Doe
Бюрократ
Posts: 11395
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 17 times
Been thanked: 101 times

Re: Renaming files causes file loss when ~1 is part of file

Post by John Doe » Wed 25 Apr, 2012 12:51

unable to reproduce

Code: Select all

╔═══════════════════════════ Warning ════════════════════════════╗
║                      File already exists                       ║
║ file.exe                                                       ║
╟────────────────────────────────────────────────────────────────╢
║ New                                      0 25.04.2012 14:47:14 ║
║ Existing                                 0 25.04.2012 14:47:09 ║
╟────────────────────────────────────────────────────────────────╢
║ [ ] Remember choice                                            ║
╟────────────────────────────────────────────────────────────────╢
║    { Overwrite } [ Skip ] [ Rename ] [ Append ] [ Cancel ]     ║
╚════════════════════════════════════════════════════════════════╝

cyberwolf
Posts: 109
Joined: Tue 24 Mar, 2009 14:39

Re: Renaming files causes file loss when ~1 is part of file

Post by cyberwolf » Wed 25 Apr, 2012 14:49

The only way to reproduce is to disable the warnings for Move (Options->Confirmations and uncheck the "Move").

Code: Select all

   ╔═══════════ Confirmations ═══════════╗   
   ║ [x] Copy                            ║   
   ║ [ ] Move                            ║   
   ║ [x] Overwrite and delete R/O files  ║   
   ║ [x] Drag and drop                   ║   
   ║ [x] Delete                          ║   
   ║ [x] Delete non-empty folders        ║   
   ║ [x] Interrupt operation             ║   
   ║ [x] Disconnect network drive        ║   
   ║ [x] Disconnect SUBST-disk           ║   
   ║ [x] Detach virtual disk             ║   
   ║ [x] HotPlug-device removal          ║   
   ║ [x] Reload edited file              ║   
   ║ [x] Clear history list              ║   
   ║ [x] Exit                            ║   
   ╟─────────────────────────────────────╢   
   ║          { OK } [ Cancel ]          ║   
   ╚═════════════════════════════════════╝  

But in that case i believe it's "user error", since FAR won't warn of problems since the user ASKED NOT TO BE WARNED :).
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA

Marcos
Posts: 10
Joined: Sat 12 Dec, 2009 08:27

Re: Renaming files causes file loss when ~1 is part of file

Post by Marcos » Wed 25 Apr, 2012 18:08

I'd add that this issue DOES NOT occur with x64 version (it does when using x86 version on Win7 x64). On WinXP and Win7 x86, the files were lost as described in my initial post. I can provide a demonstration video but I think it won't be necessary as I've reproduced it on 3 independent systems.

2useven10
Posts: 3045
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 2 times
Been thanked: 83 times

Re: Renaming files causes file loss when ~1 is part of file

Post by 2useven10 » Wed 25 Apr, 2012 19:37

Does not occur with far3 x86 version too.
Did you try to start far without macros and plugins (far /p /m) ?

Marcos
Posts: 10
Joined: Sat 12 Dec, 2009 08:27

Re: Renaming files causes file loss when ~1 is part of file

Post by Marcos » Wed 25 Apr, 2012 23:38

Strange enough, it doesn't happen with FAR2 on my home computer running Win7 x86. However, it happens with FAR3 installed in a different folder than FAR2 (uninstalling FAR2 doesn't make any difference). I'll try it with FAR3 on a machine that has never had FAR installed before.

Maximus5
Posts: 3292
Joined: Sun 11 Nov, 2007 02:03
Been thanked: 4 times
Contact:

Re: Renaming files causes file loss when ~1 is part of file

Post by Maximus5 » Wed 25 Apr, 2012 23:43

Did you see post N 3?

Post Reply

Return to “Bug Reports”