Bug 511447 - Extracting certain .rar files in parallel with other archives unexpectedly moves files + folders out of home directory
Summary: Extracting certain .rar files in parallel with other archives unexpectedly mo...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-31 23:14 UTC by Jon Pacheco
Modified: 2026-01-12 09:51 UTC (History)
3 users (show)

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


Attachments
Video demonstrating .rar extraction bug (2.30 MB, video/mp4)
2025-10-31 23:14 UTC, Jon Pacheco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Pacheco 2025-10-31 23:14:58 UTC
Created attachment 186373 [details]
Video demonstrating .rar extraction bug

SUMMARY
When extracting certain .rar archives in parallel with other archives (via Dolphin's context menu), extraction fails. Inspecting the working directory reveals that files + folders were moved from the home directory - this included .config, .local, .bashrc and several others.

STEPS TO REPRODUCE
1. Create a large .7z archive which takes a non-negligible time to extract (e.g. 10-15 seconds). Contents for this archive doesn't matter
2. Create a similar .rar archive, except the top-level folder inside has a name like 'test ~folder~' (i.e. contains '~' and a space)
3. Place both archive files in ~/Downloads
4. In Dolphin, extract the .7z archive using context menu: 'Extract -> Extract here'
5. While the .7z archive is extracting, extract the .rar archive using the same context menu option

OBSERVED RESULT
- .7z archive extracts correctly, but .rar archive fails
- Dolphin unexpectedly asks to overwrite an unnamed file
- Inspecting the contents of ~/Downloads reveals that several files + folders were moved out of home directory

EXPECTED RESULT
Contents of both archives are successfully extracted into ~/Downloads

SOFTWARE/OS VERSIONS
Ark: 25.08.2
Dolphin: 25.08.2
KDE Frameworks: 6.19.0
Qt: Using 6.9.2 and built against 6.9.2
Fedora Linux 43 (KDE Plasma Desktop Edition) (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.17.5-300.fc43.x86_64

ADDITIONAL INFORMATION
Please see the attached video demonstrating the issue on a fresh installation of Fedora 43 KDE.

For context, the original .rar archive was for a Japanese game, where the archive file was named something like 'Title ~Subtitle~.rar'. I encountered the issue a few months ago, but wasn't able to narrow down the cause until it happened again recently.

It seems to occur when Dolphin uses a temporary '.dolphin-.xxxxxx' folder to store the .rar archive's partially extracted contents.

- If Ark is using 'The Unarchiver plugin' (i.e. 'unar'), a temporary '.dolphin-.xxxxxx' folder is created and issue occurs
- If Ark is using 'RAR plugin' (i.e. 'rar' / 'unrar'), no temporary folder is created and issue doesn't occur

So my guess is that something goes wrong when Dolphin tries to move the extracted contents out of the temporary folder. It could be a race condition of some sort since extracting the archives one at a time works as expected.