Bug 526447 - The Astronomy (NASA) Picture of the Day wallpaper showed a server authenticity check error
Summary: The Astronomy (NASA) Picture of the Day wallpaper showed a server authenticit...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Picture of the Day wallpaper (other bugs)
Version First Reported In: 6.7.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 518709 528131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-09-30 06:02 UTC by Matt Fagnani
Modified: 2026-11-12 04:44 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.8
Sentry Crash Report:


Attachments
A patch to update APOD plugin for the new NASA API (3.63 KB, patch)
2026-10-03 17:49 UTC, Bill Binder
Details
A patch to update APOD plugin for the new NASA API and fix caching (12.94 KB, text/plain)
2026-10-22 01:27 UTC, sgiurgiu11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Fagnani 2026-09-30 06:02:51 UTC
DESCRIPTION

I had set the wallpaper to type Picture of the Day with the provider Astronomy (NASA) in System Settings in Plasma 6.7.5 on Wayland in a Fedora 45 KDE installation. When I started Plasma on 2026-9-30, an error box showed the following:
The server failed the authenticity check (apod.nasa.gov).
The host name did not match any of the of the valid hosts for the certificate.

I think this error is due to the Astronomy Picture of the Day's URL changing to https://science.nasa.gov/apod/ The change was noted "APOD's main NASA site has moved: From apod.nasa.gov to science.nasa.gov/apod" at https://science.nasa.gov/image-article/apod-2026-september-29-sh2-188-the-shrimp-nebula/

STEPS TO REPRODUCE
1. Log in to Plasma 6.7.5 on Wayland in a Fedora 45 KDE installation
2. Start System Settings
3. Select Wallpaper in System Settings
4. Set Wallpaper type to Picture of the Day
5. Set Provider to Astronomy (NASA)

OBSERVED RESULT
The Astronomy (NASA) Picture of the Day wallpaper showed a server authenticity check error

EXPECTED RESULT
No error should've been shown.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a terminal window): Fedora 45
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2

ADDITIONAL INFORMATION
Comment 2 Uwe K 2026-09-30 10:37:24 UTC
Not only has the URL changed, but the whole document structure.
Also, the image URL is composed differently. It seems that it's necessary to extract the _whole_ URL including parameters. Otherwise, a low resolution image is served.

This means, that we cannot simply exchange the URL in apodprovider.cpp; there needs to be a new code to search for the images’ URL in the HTML document.

I narrowed the position of the image URL down to the element

```html
<figure class="hds-media-inner hds-cover-wrapper hds-media-ratio-fit "><a href="https://science.nasa.gov/image-article/apod-2026-september-30-arp-78-peculiar-galaxy-in-aries/"><img width="1772" height="1182" src="https://assets.science.nasa.gov/dynamicimage/assets/science/cds/apod/apod/2026/october/NGC772_Robert_Eder.jpg?w=1772&amp;h=1182&amp;fit=clip&amp;crop=faces%2Cfocalpoint"
```

which contains the <img> element with the URL of today’s image.

IMHO though this could still be extracted with RegExes, a different code that parses the DOM would probably be more reliable.
Comment 3 sgiurgiu11 2026-10-01 23:31:56 UTC
Why not just use the RSS feed to grab the latest image? There shouldn't be any need for web page scraping: https://science.nasa.gov/feed/apod-basic/

And in there, for the first item (today's image) there is an element: <apod:hdurl>https://assets.science.nasa.gov/dynamicimage/assets/science/cds/apod/apod/2026/october/Harvest%20Moon%20Trail%20With%20Venus%20Belt%20and%20Erupting%20Mount%20Etna%204%20LD.jpg?w=1600&#038;h=1067&#038;fit=clip&#038;crop=faces%2Cfocalpoint</apod:hdurl>
which points directly to the image.
Comment 4 Uwe K 2026-10-02 14:17:25 UTC
(In reply to sgiurgiu11 from comment #3)
> Why not just use the RSS feed to grab the latest image?

A good hint. BUT: I looked at the RSS source and it is equally complex (and larger) and wouldn't make the code easier IMHO.
An interesting difference to the Web page is the `apod:hdurl` element you mentioned, which should make it easier to fetch the high resolution image.
Comment 5 Uwe K 2026-10-02 14:17:51 UTC
(In reply to sgiurgiu11 from comment #3)
> Why not just use the RSS feed to grab the latest image?

A good hint. BUT: I looked at the RSS source and it is equally complex (and larger) and wouldn't make the code easier IMHO.
An interesting difference to the Web page is the `apod:hdurl` element you mentioned, which should make it easier to fetch the high resolution image.
Comment 6 sgiurgiu11 2026-10-02 20:52:20 UTC
(In reply to Uwe K from comment #5)
> (In reply to sgiurgiu11 from comment #3)
> > Why not just use the RSS feed to grab the latest image?
> 
> A good hint. BUT: I looked at the RSS source and it is equally complex (and
> larger) and wouldn't make the code easier IMHO.
> An interesting difference to the Web page is the `apod:hdurl` element you
> mentioned, which should make it easier to fetch the high resolution image.

Hmm, doesn't look like that to me. It's XML, structured document with a well known schema. Doesn't even need to be parsed, a simple xpath expression can retrieve the desired URL, such as "//channel/item[1]/apod:hdurl" .

Definitely better and simpler than HTML. But, im not the developer, not familiar with KDE source code, so whatever the developer decides, it's fine, as long as it's fixed once more.
Comment 7 Umesh Mohan 2026-10-03 07:39:14 UTC
NASA seems to provide an API https://api.nasa.gov/
However, its query parameters and the documentation don't seem to match.
https://science.nasa.gov/wp-json/wp/v2/apod-basic/?api_key=DEMO_KEY returns a list of recent APODs with `hdurl` pointing to the high resolution image url. On days when there are multimages (with/without annotation, before/after etc) or video, the hdurl seems to point to a image placeholder instead. In which case the `basic_html` field has to be dug through 🥲
Comment 8 Bill Binder 2026-10-03 17:49:20 UTC
Created attachment 196803 [details]
A patch to update APOD plugin for the new NASA API

Instead of having to scrape the NASA page, the APOD information is now provided via an actual API. This patch extracts the required fields from the latest entry in the json data, puts them where the POTD handling expects it, and that's it really.

Note that ~/.cache/plasma_engine_potd/apod* holds the last known values for a day so delete these before restarting plasmashell or wait.
Comment 9 sgiurgiu11 2026-10-22 01:27:52 UTC
Created attachment 197488 [details]
A patch to update APOD plugin for the new NASA API and fix caching

This updates on the earlier patch to also fix the timing bug that was showing yesterday's image from APOD
Comment 10 Nate Graham 2026-10-28 23:51:52 UTC
This has been fixed by Anuj Dhavalikar with https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/1179. It'll be in the following released:
- 6.6.8
- 6.7.6
- 6.8.3
- 6.9.0
Comment 11 Niccolò Venerandi 2026-11-01 11:47:41 UTC
*** Bug 528131 has been marked as a duplicate of this bug. ***
Comment 12 John Kizer 2026-11-12 04:44:11 UTC
*** Bug 518709 has been marked as a duplicate of this bug. ***