Bug 453027

Summary: Errors in knewstuff when loading preview images for installed content with old server URL cached
Product: [Frameworks and Libraries] frameworks-knewstuff Reporter: Justin Zobel <justin.zobel>
Component: generalAssignee: Dan Leinir Turthra Jensen <admin>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, alexander.lohnau, kdelibs-bugs, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=453535
Latest Commit: Version Fixed In:

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>