Bug 474814

Summary: Moving a file to a mount that turns to readonly deletes the source file
Product: [Applications] dolphin Reporter: saunders
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 23.08.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description saunders 2023-09-23 19:40:38 UTC
SUMMARY

STEPS TO REPRODUCE
1. begin to move a file between two different mounts, file is in the process of copying
2. target mount was btrfs and puked due to a recent kernel bug and switched to readonly
3. file stopped copying and dolphin deleted the source file effectively deleting the file altogether.

OBSERVED RESULT
file was not moved and also deleted.

EXPECTED RESULT
dolphin realised the file could not be moved and not delete the source file.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.14
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.4 (64-bit)
Graphics Platform: X11
Processors: 32 × AMD Ryzen 9 3950X 16-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4070/PCIe/SSE2

ADDITIONAL INFORMATION
I know this is very much an edge case (kernel bugs) but we've all been hit by them. Luckily the file wasn't important.