https://bugs.kde.org/show_bug.cgi?id=511447

            Bug ID: 511447
           Summary: Extracting certain .rar files in parallel with other
                    archives unexpectedly moves files + folders out of
                    home directory
    Classification: Applications
           Product: dolphin
      Version First 25.08.2
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 186373
  --> https://bugs.kde.org/attachment.cgi?id=186373&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to