Some items missed from Undo History - perhaps LFN

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Some items missed from Undo History - perhaps LFN

Post by therube »

Some items missed from Undo History - perhaps LFN?

Everything 1386 x86

Undo History changes missing

Code: Select all

renamed a file
	orig: .......................................................................				(SFN)
	 ren: .............................................................................
	 ren: ......................................................................................
	 ren: .........................................................................................
  	 ren: ................................................................................................	(SFN)
then, another rename shows, but the Name & New Name are the same, so there was no "rename"
  	 ren: ................................................................................................
(maybe ? that relates to the undo, not sure)
then, & this does not show - at all - & maybe ? this lack relates to the undo, not sure?
	 ren: T:\NEW\............................................................................................................................................................................................................................................................
at which point, i am now LFN, 253-name + 23-path
at that point, i MOVED the file up the tree
	from: T:\NEW\...............\
	  to: T:\NEW\
finally, Ctrl+Z
	< file not found > (or something along those lines)

yet, the file does exist, LFN in T:\NEW\, the last location/name that it was, prior to the Ctrl+Z attempt

Index Journal, shows MORE data
the last "SFN", 242-chars path+name (presumably coinciding with last Undo record)
then another rename "LFN" at that point
then the move to its current path
Undo, from Index Journal, successfully moved the file back to where it belonged

if i at that point, CUT the file
& (using Everything) right-click its' Path, & (again) move it up the tree

- the file is correctly moved
- that action is NOT recorded in Undo History
- that action IS recorded in Index Journal


orig file name: 123456789^
then i added it 6 or 7x more, so: 123456789^123456789^123456789^123456789^123456789^123456789^123456789^
then i doubled it, so: 123456789^123456789^123456789^123456789^123456789^123456789^123456789^123456789^123456789^123456789^123456789^123456789^123456789^123456789^
then more again, making it a LFN, then backspaced till it "fit"

1. Undo does not have full Undo History
- does NOT show the MOVE
Index Journal does show full History, including the MOVE
2. Undo History, Ctrl-Z to undo the MOVE, fails, because it was never recorded (there)
3. Undo History
- does NOT show Index Journal's MOVE (back to original Path) [maybe it shouldn't, cause it was done outside of Undo's perview?]
Index Journal did correctly Undo the action, moving the file back to its original Path
& Everything itself shows likewise
.
Everything - Undo History Missing Changes.png
Everything - Undo History Missing Changes.png (284.95 KiB) Viewed 7804 times

keyword: Unable to rename. Error 2: File not found.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Some items missed from Undo History - perhaps LFN

Post by void »

The next alpha update will have support for undoing copies/moves with very long filenames.

Thank you for bringing the issue to my attention.
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Some items missed from Undo History - perhaps LFN

Post by therube »

this follows along (& i think it's how it played out)... LFN undo...

Say you CUT a file in Everything
Then PASTE that file, through some other program, & that other program can't deal with LFN,
say instead what gets PASTE is the SFN version of the original LFN,
if you then (in Everything, Index Journal I suppose it would have to be?) went to Undo the action,
you get an Error 2.


oh, so what is happening, with that Error 2
is that with a LFN, when you Paste said file
somewhere (via say Salamander)
the SFN is pasted
& /that/ must be why the Error 2
because Everything wants to undo the (move of a) LFN
but the LFN file no longer exists
- as it was "changed" to a SFN (in order to work around...)
- ah, & it also left "deadwood"

that's a bit of a quandary...
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Some items missed from Undo History - perhaps LFN

Post by void »

This is a bug with the USN Journal.

The USN Journal uses the short filename instead of the very long filename.

There's no way for Everything to know the correct filename.
The old long filename will remain in your index until you for a manually reindex.

The Journal Index will show the short filename.
This short name will likely break the undo action.
What was shown in the index journal for this operation?



Error 2 is: File not found
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Some items missed from Undo History - perhaps LFN

Post by therube »

What was shown in the index journal for this operation?
file /was/ on T:
(incorrectly) /moved/ to V:
file ended up on V:
"deadwood" (record) [also] left pointing on T:


Undo History, i must have been too quick
(as in, immediately after catching what i did, i did Ctrl+Z, which said "admin priv..."
& then I opened Undo History, & nothing related was there at all)

Index Journal:

Code: Select all

10:12 File Create, Path V:, Size 0   (followed by)
10:12 File Modify, Path V:, Size 307745490
(so it seems that the Create 0, followed by Modify <real size>, is all expected)
Post Reply