flathub-infra / linux-store-frontend

A web application to browse and install applications present in Flatpak repositories. Powers https://www.flathub.org
Apache License 2.0
187 stars 50 forks source link

missing app details page displays blank and returns 200 status OK #187

Open skierpage opened 5 years ago

skierpage commented 5 years ago

A wrong URL like https://flathub.org/apps/details/org.bad displays a blank page with the blue Flathub header. The page's <title> is correctly "App not found—Linux Apps on Flathub" but there's no indication in the browser window and the status return code is 200 OK. Happens in both Firefox and chromium.

I noticed this when I didn't see a page at FontForge's new appid (a known issue). If I recall correctly one time "Page not found" did display in the browser window.

This sounds like issue #120 but the display is different. An /apps/details path in the URL results in the browser making an API request e.g. https://flathub.org/api/v1/apps/org.bad , which also returns status 200 (and content-length 0).