Very specific problem when changing attributes
Posted: 2018-12-19, 22:42 UTC
I have stumbled over a very peculiar problem setting file attributes for 2 specific files.
I can reproduce the bug under Windows XP, 7 and 8.1 but NOT under Windows 10 on local harddisks (but on Network shares and USB-sticks)
To reproduce, download this file http://madsenworld.dk/tcmd/attribtest.zip and unpack it to a directory.
1. Set the file panel to Full View and mark both of the two files kbenhavn.gif and kbenhavn.htm
2. Open the Change Attributes dialog, click in the "a Archive" box and click OK to clear the archive attributes.
3. Notice that the "a" attributes does NOT change.
4. Click F2 and or Ctrl+R to reread the panel - no change.
5. Leave the directory and re-enter it - now the "a" attributes are cleared.
6. Mark the two files kbenhavn.gif and kbenhavn.htm again
7. Open the Change Attributes dialog, click twice in the "a Archive" box and click OK to set the archive attributes.
8. Notice that the "a" attributes does NOT change.
9. Click F2 and or Ctrl+R to reread the panel - no change.
10. Leave the directory and re-enter it - now the "a" attributes are set.
Change the name or extension of one of the files and perform the test - now everything works as expected.
Change the date or time (just 2 tenth of a second is enough) of the original files - everything works as expected.
Change the content of one of the files and reset the date to the original - everything works as expected.
So it is a mix of these particular filenames, whit these particular dates and content that is the essential for this bug to appear.
The bug does not occur when settng the attribute for each file individually.
The bug occurs in both 32-bit and 64-bit TC and it is also present way back in TC 8.52a and it is present in both panels.
I can reproduce the bug both on FAT and NTFS formatted drives.
I can reproduce the bug under Windows XP, 7 and 8.1 but NOT under Windows 10 on local harddisks (but on Network shares and USB-sticks)
To reproduce, download this file http://madsenworld.dk/tcmd/attribtest.zip and unpack it to a directory.
1. Set the file panel to Full View and mark both of the two files kbenhavn.gif and kbenhavn.htm
2. Open the Change Attributes dialog, click in the "a Archive" box and click OK to clear the archive attributes.
3. Notice that the "a" attributes does NOT change.
4. Click F2 and or Ctrl+R to reread the panel - no change.
5. Leave the directory and re-enter it - now the "a" attributes are cleared.
6. Mark the two files kbenhavn.gif and kbenhavn.htm again
7. Open the Change Attributes dialog, click twice in the "a Archive" box and click OK to set the archive attributes.
8. Notice that the "a" attributes does NOT change.
9. Click F2 and or Ctrl+R to reread the panel - no change.
10. Leave the directory and re-enter it - now the "a" attributes are set.
Change the name or extension of one of the files and perform the test - now everything works as expected.
Change the date or time (just 2 tenth of a second is enough) of the original files - everything works as expected.
Change the content of one of the files and reset the date to the original - everything works as expected.
So it is a mix of these particular filenames, whit these particular dates and content that is the essential for this bug to appear.
The bug does not occur when settng the attribute for each file individually.
The bug occurs in both 32-bit and 64-bit TC and it is also present way back in TC 8.52a and it is present in both panels.
I can reproduce the bug both on FAT and NTFS formatted drives.