Bug 444255 - deleting a file the whole folder got deleted (and no way to restore)
Summary: deleting a file the whole folder got deleted (and no way to restore)
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.08.2
Platform: Neon Linux
: NOR critical
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-23 07:13 UTC by Duns
Modified: 2024-12-11 18:07 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duns 2021-10-23 07:13:44 UTC
SUMMARY


STEPS TO REPRODUCE
1. I deleted in Dolphin a file in a folder (where there were many other files)
2. No question, no confirmation request
3. The whole root folder got deleted

OBSERVED RESULT
The whole root folder was deleted: deleting a file in /mnt/A/B was deleted not only that file but the whole B folder and the whole A folder as well: incredible. And no confirmation question. And nothing in the trash.
Maybe this bug is related with a similar, opposite, bug: in Desktop folder is impossibile delete anything (from the Desktop, I mean, but it remain possible with file manager).

EXPECTED RESULT
If I delete a file I should be asked for confirm, and only that file should be deleted.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-38-generic (64-bit)
Graphics Platform: X11
Processors: 2 × Intel® Core™ i3-7100 CPU @ 3.90GHz
Memory: 7,7 GiB of RAM
Graphics Processor: GeForce GT 710/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Duns 2021-10-23 07:28:17 UTC
It happened one time, so far. Other attempts show a normal behavior of Dolphin.

However a deleting misbehavior happen always on the Desktop, as I said: impossible delete anything.

So I guess that there is something wrong in KDE delete graphical command.
Comment 2 Duns 2021-10-23 07:48:58 UTC
Maybe it could be relevant say that that folder was an amule one: deleting a file in Incoming subfolder, the whole root folder (Amule) was deleted.
Comment 3 Duns 2021-10-27 16:31:11 UTC
Today I deleted a file from Amule/Incoming folder and nothing wrong happened.
Comment 4 Duns 2021-11-05 17:50:56 UTC
So far I didn't any other cases of this bug.
Comment 5 Steve Soule 2022-01-29 22:38:47 UTC
I had this happen to me today too, with Dolphin 20.04.2, opensuse 15.2.  Here's what happened:

1.  I decided I needed to free up some disk space, as I only had about 12 GB free on my home partition.  I decided to delete old mod files from the directory ~/download/games/skyrim, which is where I download mods for skyrim.  The directory had about 200 files in it, some of them over 1 GB in size.
2.  I opened Dolphin and navigated to ~/download/games/skyrim.
3.  I went through the directory contents, selecting old mod files that I wanted to delete by clicking on the "+" symbol in the upper-left corner of each file icon.
4.  I clicked on the "File" menu and then the "Delete" menu item.
5.  A window appeared asking if I was sure I wanted to delete 73 files.  I confirmed.
6.  I closed Dolphin.
7.  A few hours later, I discovered that the directory ~/download/games/skyrim no longer exists.  All the files are gone.  All subdirectories are gone.
Comment 6 kde.aerospace405 2024-07-30 13:08:38 UTC
Looks like this is very similar to my situation. Please check out #491027
Comment 7 kde.aerospace405 2024-07-30 13:22:10 UTC
I also have steps to reproduce there. https://bugs.kde.org/show_bug.cgi?id=491027
Comment 8 kde.aerospace405 2024-07-30 13:24:37 UTC
Oops, I'm sorry. I didn't read it properly. No, my bug isn't quite the same, but it is similar.
Comment 9 TraceyC 2024-12-05 15:32:37 UTC
I'm not able to reproduce this on Dolphin 24.08.3. Are you able to reproduce this on an up to date version of Dolphin?
When I select files and choose File - Delete, only those files are deleted. The parent folder is still there.
Comment 10 Steve Soule 2024-12-06 00:28:21 UTC
When I added a message to this thread three years ago about it happening to me too, I tried several times to reproduce it and was unable to.  I tried again twice just now and was not able to reproduce it.  That doesn't mean the bug is fixed.  With a nasty intermittent bug like this, it's highly unlikely that it'll get fixed until either someone figures out the cause or someone does a thorough code cleaning, making the code more robust in hundreds of ways.
Comment 11 TraceyC 2024-12-09 18:10:37 UTC
Certainly, intermittent bugs can be tricky to confirm being fixed. You had said that the bug always happened on the Desktop, does the bug still happen there for you?
Comment 12 Steve Soule 2024-12-10 19:29:28 UTC
(In reply to TraceyC from comment #11)
> Certainly, intermittent bugs can be tricky to confirm being fixed. You had
> said that the bug always happened on the Desktop, does the bug still happen
> there for you?

The original poster, Duns, is the person who reported a problem with deleting files on the Desktop.  I have not encountered that problem, because I do not use that feature.
Comment 13 Duns 2024-12-10 19:48:51 UTC
Not exactly: in the Desktop is was impossible delete any file. But probably is was a refresh problem (similar, it seems, to the problems of recent files menu in KDE Neon).
The real problem (deleting one file was deleted the whole containing folder) happened to me just one time. So far, at least.
Comment 14 TraceyC 2024-12-11 18:07:49 UTC
Since there hasn't been a recurrence of this since January of 2022, I'm marking this as resolved.

Should anyone run into this again, please create a new bug. The code has changed a lot since this was originally opened, so a fresh bug would be needed. Thanks!