Bug 425005

Summary: Dolphin shows wrong error message if a target of a symlink is not found
Product: [Frameworks and Libraries] frameworks-kio Reporter: Alexander Shchadilov <alexander.shchadilov>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: elvis.angelaccio, kdelibs-bugs, kfm-devel
Priority: NOR    
Version: 5.71.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alexander Shchadilov 2020-08-04 15:49:11 UTC
SUMMARY
If a user tries to open a symlink after it's target was deleted a wrong error message appears (a text label shows a path to a symlink where a path to a target is expected).

STEPS TO REPRODUCE
1. touch target
2. ln -s target link
3. rm target
4. Open Home directory in Dolphin.
5. Try to open "link" file with Dolphin.

OBSERVED RESULT
Error message is shown: "Unable to run the command specified. The file or folder <path_to_link> does not exist", where <path_to_link> is a path that references a symlink created in step 2.

EXPECTED RESULT
Error message is shown: "Unable to run the command specified. The file or folder <path_to_target> does not exist", where <path_to_target> is a path that references a file created in step 1.

SOFTWARE/OS VERSIONS
openSUSE Leap 15.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7