Bug 453027 - Errors in knewstuff when loading preview images for installed content with old server URL cached
Summary: Errors in knewstuff when loading preview images for installed content with ol...
Status: CONFIRMED
Alias: None
Product: frameworks-knewstuff
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-26 00:26 UTC by Justin Zobel
Modified: 2022-05-23 15:03 UTC (History)
4 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 Justin Zobel 2022-04-26 00:26:25 UTC
When products are installed through knewstuff their information is recorded in ~/.local/share/knewstuff3/xcursor.knsregistry for example for cursors.

This includes the preview image URL. The image server URL has recently (last month or so) changed from cn.opendesktop.org to images.pling.com

This causes already installed products to not have a preview image and errors about the SSL certificate received.

It would be better if knewstuff instead only recorded the API product URL and then it would need to look up the product's image via the product request e.g. https://api.kde-look.org/ocs/v1/content/data/1170170 



Example of old image server URL hard encoded in knewstuff registry file:

grep -i cn.opendesktop.org ~/.local/share/knewstuff3/xcursor.knsregistry
18:  <preview>https://cn.opendesktop.org/cache/100x100-0/img/3/9/f/c/bf76830de87b7aac326717685c9301cb2f89.png</preview>
19:  <previewBig>https://cn.opendesktop.org/cache/770x540-0/img/3/9/f/c/bf76830de87b7aac326717685c9301cb2f89.png</previewBig>
87:  <preview>https://cn.opendesktop.org/cache/100x100-0/img/5/7/8/9/b99c9191c040fc729cdb5855ee55522c05b405fdaf43e2cf3bb26dab3b821bfeb6a2.png</preview>
88:  <previewBig>https://cn.opendesktop.org/cache/770x540-0/img/5/7/8/9/b99c9191c040fc729cdb5855ee55522c05b405fdaf43e2cf3bb26dab3b821bfeb6a2.png</previewBig>
127:  <preview>https://cn.opendesktop.org/cache/100x100-0/img/0/e/f/7/c90e248bf7a72a4ec8aaec653db520630cca.png</preview>
128:  <previewBig>https://cn.opendesktop.org/cache/770x540-0/img/0/e/f/7/c90e248bf7a72a4ec8aaec653db520630cca.png</previewBig>