<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>453027</bug_id>
          
          <creation_ts>2022-04-26 00:26:25 +0000</creation_ts>
          <short_desc>Errors in knewstuff when loading preview images for installed content with old server URL cached</short_desc>
          <delta_ts>2022-05-23 15:03:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-knewstuff</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=453535</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Zobel">justin.zobel</reporter>
          <assigned_to name="Dan Leinir Turthra Jensen">admin</assigned_to>
          <cc>aleixpol</cc>
    
    <cc>alexander.lohnau</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2119487</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Zobel">justin.zobel</who>
    <bug_when>2022-04-26 00:26:25 +0000</bug_when>
    <thetext>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&apos;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:  &lt;preview&gt;https://cn.opendesktop.org/cache/100x100-0/img/3/9/f/c/bf76830de87b7aac326717685c9301cb2f89.png&lt;/preview&gt;
19:  &lt;previewBig&gt;https://cn.opendesktop.org/cache/770x540-0/img/3/9/f/c/bf76830de87b7aac326717685c9301cb2f89.png&lt;/previewBig&gt;
87:  &lt;preview&gt;https://cn.opendesktop.org/cache/100x100-0/img/5/7/8/9/b99c9191c040fc729cdb5855ee55522c05b405fdaf43e2cf3bb26dab3b821bfeb6a2.png&lt;/preview&gt;
88:  &lt;previewBig&gt;https://cn.opendesktop.org/cache/770x540-0/img/5/7/8/9/b99c9191c040fc729cdb5855ee55522c05b405fdaf43e2cf3bb26dab3b821bfeb6a2.png&lt;/previewBig&gt;
127:  &lt;preview&gt;https://cn.opendesktop.org/cache/100x100-0/img/0/e/f/7/c90e248bf7a72a4ec8aaec653db520630cca.png&lt;/preview&gt;
128:  &lt;previewBig&gt;https://cn.opendesktop.org/cache/770x540-0/img/0/e/f/7/c90e248bf7a72a4ec8aaec653db520630cca.png&lt;/previewBig&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>