Bug 446869 - Dolphin handles broken symlinks in an unexpected way
Summary: Dolphin handles broken symlinks in an unexpected way
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-12 08:59 UTC by Kishore Gopalakrishnan
Modified: 2021-12-12 10:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2021-12-12 08:59:29 UTC
SUMMARY
When the user tries to open a broken symlink, Dolphin asks the user to choose an application, instead of first raising some sort of error or warning.

STEPS TO REPRODUCE
1. Run the following command in any directory: ln -s /location_that_does_not_exist brokenlink 
2. Navigate to that directory in Dolphin and click on the link to open it

OBSERVED RESULTS
Dolphin directly asks the user which application should be used to open the file.

EXPECTED RESULTS
Dolphin should first warn the user that the symlink is broken.
Other programs detect this correctly, e.g. running `file brokenlink` in the terminal gives the following output:
brokenlink: broken symbolic link to /location_that_does_not_exist

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.7-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 21.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics

ADDITIONAL INFORMATION
'Right-click > Show Target' correctly complains that the destination is not accessible.