Bug 394874 - Preview of a broken symbolic link in trash: generates a broken symbolic link
Summary: Preview of a broken symbolic link in trash: generates a broken symbolic link
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-30 20:44 UTC by Jaime Torres
Modified: 2022-11-26 08:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2018-05-30 20:44:56 UTC
For example, if in ~/.local/share/Trash/files there is a broken symbolic link:
3stdoutdae.txt -> 1stdoutdae.txt
When browsing in dolphin trash:, when PreviewJob tries to create a preview of that file, it creates a temporary file and "that file is transformed into the broken link", and then the following assert is triggered:
        Q_ASSERT(QFileInfo(tempName).isFile());
in PreviewJobPrivate::cleanupTempFile()

Should PreviewJob create symbolic links or should detect the file is a broken link and use a predefined icon?
Comment 1 Justin Zobel 2022-11-26 00:13:50 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Jaime Torres 2022-11-26 08:20:48 UTC
I'm not able to reproduce it. Good.