Bug 490887

Summary: Kstars fails to install addons that are compressed in bz2 format
Product: [Applications] kstars Reporter: rainer
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description rainer 2024-07-27 12:04:06 UTC
SUMMARY
Kstars fails to install addons that are compressed with bz2 by showing error message "Could not install <addon name>: file not found". Addons that are compressed with gz work without issues.

STEPS TO REPRODUCE
1. Fresh install of Kstars on windows (latest website installer, shows in About dialog as 3.7.2 Beta)
2. Data menu -> Download new data -> try to donwload for example Tycho 2 star catalog
3. Error message shown, catalog not installed

OBSERVED RESULT
Addons in bz2 format are not installed

EXPECTED RESULT
Addons should be installed

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
Most addons coming from https://cdn.kde.org/edu/kstars/main.xml seem to be affected as they are in bz2 format  (besides two Mars addons that are in zip format) , addons from https://indilib.org/jdownloads/knewstuff/dso.xml are not affected as they are in gz format.
I enabled logging to file and this is the relevant line:
[2024-07-27T14:53:16.649 FLE Daylight Time CRIT ][              kf.newstuff.core] - Could not determine type of archive file ' "Q:/temp/temp/eaOHkF-tycho2_mag_12.5-1.1.tar.bz2" '
I verified that the mentioned file does exist and unpacks without errors - so not a download issue.