Serious bug that may cause data loss
Forum rules
You might want to read this if you're looking for priority service
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%).
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.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Serious bug that may cause data loss
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.
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
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.
)
(I found this thread by chance via google -- no idea how it could get unnoticed for such a long time.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 67327
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
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
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?admin wrote:(I found this thread by chance via google -- no idea how it could get unnoticed for such a long time.)
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.
(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
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.
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
Do you have a screenshot of this "overwrite?"-prompt?
FAQ | XY News RSS | XY X
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Re: Serious bug that may cause data loss
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
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.
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
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).
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).
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Serious bug that may cause data loss
Hmmm... that's not good for Windows 7 users. So you suggest using custom copy? Is it the default on fresh XY install?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).
-
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
No, it's not the default. I have to think about it...serendipity wrote:Hmmm... that's not good for Windows 7 users. So you suggest using custom copy? Is it the default on fresh XY install?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).
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Serious bug that may cause data loss
OK thanks.admin wrote:No, it's not the default. I have to think about it...serendipity wrote:Hmmm... that's not good for Windows 7 users. So you suggest using custom copy? Is it the default on fresh XY install?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).
-
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
Victory!
I have been trying this for years, and finally succeeded. HAR!
I have been trying this for years, and finally succeeded. HAR!
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Serious bug that may cause data loss
This is indeed nice. Thanks again.admin wrote:Victory!![]()
I have been trying this for years, and finally succeeded. HAR!
XYplorer Beta Club