Bug 499756 - Relative image URLs in Description/(short)Summary are not resolved
Summary: Relative image URLs in Description/(short)Summary are not resolved
Status: REPORTED
Alias: None
Product: frameworks-knewstuff
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-10 12:20 UTC by cwo
Modified: 2025-02-10 12:20 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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