Opened 15 years ago
Last modified 5 years ago
#5335 assigned bug
Conflicts and inconsistencies when sending files and folders to the trash.
Reported by: | humdinger | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Tracker | Version: | R1/Development |
Keywords: | Cc: | jstressman@… | |
Blocked By: | Blocking: | #8404, #9090, #12688 | |
Platform: | All |
Description
This is hrev35329.
If there's a file "foobar" already in the Trash, Tracker won't trash a folder also called "foobar".
Vice-versa is no problem, the to be trashed file is then renamed to "foobar copy". Same should be done with to be trashed folders.
Took me awhile before realizing why Tracker simply refused to delete a specific folder but did so with any other... :)
Change History (8)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Cc: | added |
---|---|
Summary: | Can't delete a folder with same name as a trashed file → Conflicts and inconsistencies when sending files and folders to the trash. |
After humdinger mentioned this I did some further testing and we have even more inconsistent and bad behavior...
If you have a folder in the trash calling "Testing" and you then delete another folder called "Testing" it will be silently merged with the previous folder and any files inside that folder will silently overwrite the previous files regardless of their contents.
So if you have a "Testing" folder with a "Foobar" file in it that is 1mB of data... and you then delete a "Testing" folder with a file in it called "Foobar" that is 0 size, it will silently overwrite the previous file with the 0 size file.
If you then delete a folder called "Testing" with a folder called "Foobar" in it, with the other "Testing" folder with the "Foobar" file in it already in the trash, the new folder "Foobar" in the "Testing" folder will simply be silently discarded completely as in the behavior humdinger was talking about.
Should there be some kind of invisible means of indexing deletes by time or something that you wouldn't start piling up copies of copies, and instead have the files using their original names, with a "deleted on" date or something? That way there would be no issue with the name conflicts to begin with?
comment:3 by , 13 years ago
Blocking: | 8404 added |
---|
comment:4 by , 12 years ago
Blocking: | 9090 added |
---|
comment:5 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:6 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | assigned → in-progress |
comment:7 by , 6 years ago
Blocking: | 12688 added |
---|
comment:8 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | in-progress → assigned |
Now, with hrev35922, the foobar folder can be deleted, but never appears n the trash.