Bug 383437

Summary: Comet and asteroid coordinates RA=0 and DEC=0
Product: [Applications] kstars Reporter: VTVL <john.sved>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: normal CC: jsid
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 17.12

Description VTVL 2017-08-12 19:30:03 UTC
After updating Comets and Asteroids the RA and DEC for all these objects is zero.

KStars Version 2.8.0
Comment 1 Jasem Mutlaq 2017-08-28 06:08:21 UTC
Can't reproduce this at all. Please try in 2.8.2 and report back.
Comment 2 VTVL 2017-08-29 11:28:22 UTC
I updated to 2.8.2 and then updated the comets, asteroids and supernovae. My internet connection is rather narrowband and extremely slow sometimes.  The update of comets ans astreroids seems to go very fast; as if there was a time-out and no download occurred.  Does KStars report a failed update?   Anyway I then used What's Interesting Tonight.  The first usage after an ephemeris update showed all asteroids and comets with RA=0 abd DEC=0.  After restarting KStars WIT showed the correct RA and DEC.  In fact WIT does not start correctly the first invokation.  Only after closing WIT and the starting it again does its menu of objects appear.
Comment 3 Jérôme SONRIER 2017-09-04 23:47:01 UTC
I can confirm that something goes wrong with downloading comets and asteroids data files. We get a html file instead of a CVS file
Comment 4 Jasem Mutlaq 2017-09-05 10:43:47 UTC
Git commit fb5e85fcb7d2a69e94e4d6c3b0f823fcbf4ffd8f by Jasem Mutlaq.
Committed on 05/09/2017 at 10:41.
Pushed by mutlaqja into branch 'master'.

Verify comet and asteroid data before saving the returned result as JPL apparently does not return 404 but a different valid page that does not contain the data.
FIXED-IN:17.12

M  +23   -3    kstars/auxiliary/filedownloader.cpp
M  +7    -0    kstars/auxiliary/filedownloader.h
M  +1    -0    kstars/skycomponents/asteroidscomponent.cpp
M  +1    -0    kstars/skycomponents/cometscomponent.cpp

https://commits.kde.org/kstars/fb5e85fcb7d2a69e94e4d6c3b0f823fcbf4ffd8f