Bug 499756

Summary: Relative image URLs in Description/(short)Summary are not resolved
Product: [Frameworks and Libraries] frameworks-knewstuff Reporter: cwo <cwo.kde>
Component: generalAssignee: Dan Leinir Turthra Jensen <admin>
Status: REPORTED ---    
Severity: normal CC: alexander.lohnau, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description cwo 2025-02-10 12:20:26 UTC
SUMMARY

Some descriptions on store.kde.org contain relative image urls, for example an emoticon here: https://store.kde.org/p/1286856

knewstuff does not handle this at all, so when the string is used qml it will look for the image relative to the qrc root, where it obviously can't find it, prints an error, and uses a missing image marker instead.

It should probably resolve that to the absolute url, or maybe just strip the images from the description completely.

STEPS TO REPRODUCE
1. Open `knewstuff-dialog6` (same issue with small modifications in Discover)
2. Click "Aurorae Window Decorations"

OBSERVED RESULT

"qrc:/qt/qml/org/kde/newstuff/private/entrygriddelegates/TileDelegate.qml:166:17: QML Label: Cannot open: qrc:/emoticons/happy.png";  clicking on the entry shows a placeholder image


EXPECTED RESULT

No error, either actual image or nothing

SOFTWARE/OS VERSIONS

Operating System: TUXEDO OS 
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.1
Kernel Version: 6.11.0-108013-tuxedo (64-bit)
Graphics Platform: Wayland