Bug 439430

Summary: XML Provider does not find payload url if email attribute is set in the author tag
Product: [Frameworks and Libraries] frameworks-knewstuff Reporter: Valentin Boettcher <hiro>
Component: generalAssignee: Dan Leinir Turthra Jensen <admin>
Status: REPORTED ---    
Severity: major CC: kdelibs-bugs, mutlaqja
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Valentin Boettcher 2021-07-03 08:40:31 UTC
SUMMARY
when the email attribute of the author tag is set, sometimes an entry is randomly uninstalled with the message `Entry: no payload URL given for:  "NGC IC (Steinicke)"  -  "NGC IC (Steinicke)"`

this is interesting because (according to the code) the second part after the dash should be the catalog id

removing the email from *both* entries does seem to make it work

working dso.xml: https://haste.tchncs.de/peyayobovu.xml
not working: https://haste.tchncs.de/icalovixug.xml

log: https://haste.tchncs.de/legovidilu.log
 1. Install openngc and steinicke 
 2. Close the dialog
 3. Uninstall steinicke
 4. Close the dialog
 5. -> both openngc and steinicke uninstalled



STEPS TO REPRODUCE
Set up similar to:
https://invent.kde.org/frameworks/knewstuff/-/issues/1

install/uninstall catalogs and open/close knewstuff a couple of times...

(rm -r ~/.local/share/kstars/ && rm -r ~/.local/share/knewstuff3/ && rm -r ~/.cache/kstars/ to clear the cache before trying)

OBSERVED RESULT
entries unintentionally uninstalled


EXPECTED RESULT
installation/removal as usual
Comment 1 Jasem Mutlaq 2021-07-03 08:50:15 UTC
I can confirm this bug as well.
Comment 2 Dan Leinir Turthra Jensen 2021-07-05 13:40:43 UTC
Could i get you to upload the knsregistry for each of these as well? (as you've identified, that's the kstars.knsregistry file in ~/.local/share/knewstuff3/) Looking at the code, it seems sane enough to me at least, but that just means i'm missing something, so... more info would be good to try and narrow it down a bit :)