Serious bug that may cause data loss

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Serious bug that may cause data loss

Post by rhoelzl »

I discovered a serious bug in the undo routine that might cause data loss (almost happened to me a few seconds ago):

Lets say we have two different files with the same filename, say file.txt in different directories, lets call them file A and file B and lets say they are located in directory A and B, respectively.

If I try to move file A into dir B, windows will show the "overwrite?"-prompt. One option I can choose is the option to keep both files, but to rename the new file.

If I choose this option, this is what I get in dir B:
file.txt <----- file B
file (2).txt <----- file A

So far so good.

But if I now choose undo for this move operation, XY does NOT move back "file (2).txt" into dir A and rename it back to "file.txt". Instead it moves file.txt to dir 1. So the two files are now interchanged.

This just happened to me, and I only noticed it in time because the file sizes of both files were very different.

admin
Site Admin
Posts: 67327
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Serious bug that may cause data loss

Post by admin »

Thanks, I'll check this.

(I found this thread by chance via google -- no idea how it could get unnoticed for such a long time. :oops: )

admin
Site Admin
Posts: 67327
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Serious bug that may cause data loss

Post by admin »

Cannot reproduce it. :? Magic fix?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Serious bug that may cause data loss

Post by j_c_hallgren »

admin wrote:(I found this thread by chance via google -- no idea how it could get unnoticed for such a long time. :oops: )
My bookmark is for "view active topics" and I read everything that is marked as new but sometimes when I go to "board index", I see threads that are unread...maybe that happened to you?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Re: Serious bug that may cause data loss

Post by rhoelzl »

Hi,

just tried it. I can still reproduce the problem.

What I forgot to mention in the original post: The file in dir B will still be called "file (2).txt".

I suspect that the reason simply is that Windows "does not tell" XY how it resolved the overwrite situation, so XY simply does not have the necessary information to properly undo it.

admin
Site Admin
Posts: 67327
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Serious bug that may cause data loss

Post by admin »

Do you have a screenshot of this "overwrite?"-prompt?

rhoelzl
Posts: 200
Joined: 28 Dec 2009 11:20

Re: Serious bug that may cause data loss

Post by rhoelzl »

Here you go.
To see the attached files, you need to log into the forum.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Serious bug that may cause data loss

Post by serendipity »

I too can reproduce this.
BTW, custom copy is turned off, so the overwrite prompt is given by windows shell (not XY).
So i guess XY doesn't know that file.txt was renamed to file (2).txt (confirmed by rename missing in action log) So on undo XY is copying the file.txt back to folder A.

admin
Site Admin
Posts: 67327
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Serious bug that may cause data loss

Post by admin »

Correct explanation. I'm afraid I cannot do much about it. Windows gives me no way to know the new name.

BTW, I have never seen this windows prompt (probably because I work on XP all the time where you just get an overwrite yes/no prompt).

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Serious bug that may cause data loss

Post by serendipity »

admin wrote:Correct explanation. I'm afraid I cannot do much about it. Windows gives me no way to know the new name.

BTW, I have never seen this windows prompt (probably because I work on XP all the time where you just get an overwrite yes/no prompt).
Hmmm... that's not good for Windows 7 users. So you suggest using custom copy? Is it the default on fresh XY install?

admin
Site Admin
Posts: 67327
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Serious bug that may cause data loss

Post by admin »

serendipity wrote:
admin wrote:Correct explanation. I'm afraid I cannot do much about it. Windows gives me no way to know the new name.

BTW, I have never seen this windows prompt (probably because I work on XP all the time where you just get an overwrite yes/no prompt).
Hmmm... that's not good for Windows 7 users. So you suggest using custom copy? Is it the default on fresh XY install?
No, it's not the default. I have to think about it...

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Serious bug that may cause data loss

Post by serendipity »

admin wrote:
serendipity wrote:
admin wrote:Correct explanation. I'm afraid I cannot do much about it. Windows gives me no way to know the new name.

BTW, I have never seen this windows prompt (probably because I work on XP all the time where you just get an overwrite yes/no prompt).
Hmmm... that's not good for Windows 7 users. So you suggest using custom copy? Is it the default on fresh XY install?
No, it's not the default. I have to think about it...
OK thanks.

admin
Site Admin
Posts: 67327
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Serious bug that may cause data loss

Post by admin »

Victory! :mrgreen:

I have been trying this for years, and finally succeeded. HAR!

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Serious bug that may cause data loss

Post by serendipity »

admin wrote:Victory! :mrgreen:

I have been trying this for years, and finally succeeded. HAR!
This is indeed nice. Thanks again.

Post Reply