Bug 487680

Summary: Dolphin crashes when trying to eject an unmounted encrypted disk
Product: [Applications] dolphin Reporter: oht11414 <oht11414>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: crash CC: kfm-devel
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:

Description oht11414 2024-05-28 10:58:38 UTC
SUMMARY
I have a luks2 disk without partition table and containing a single ext4 partition.
I am using normal debian KDE stable and didn't make any fancy changes.

STEPS TO REPRODUCE
1. Create a luks2 encrypted disk (for example an USB flash drive) without partition table and containing a single ext4 partition.
2. Replug the device so it will be shown in dolphin.
3. Open a dolphin window so you see the device on the left (under "Removable Devices").
4. Click on the device and enter the password. It should now open the luks2 container and also mount the ext4 partition.
5. Click on the eject symbol of the ext4 partition under "Devices" (NOT on the disk under "Removable Devices").
6. The partition is now unmounted while the luks2 container is still open (can be seen when running lsblk).
7. Click the eject symbol of the luks2 container under "Removable Devices". Dolphin will crash.

OBSERVED RESULT
Dolphin crashes and the luks2 container is still open (see lsblk).

EXPECTED RESULT
Dolphin properly closes the luks2 container.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version:  5.27.5
KDE Frameworks Version: 
Qt Version: 5.15.8

ADDITIONAL INFORMATION