Cwa-app-android: 404 error page in 'Häufige Fragen'

Created on 17 Jun 2020  ·  8Comments  ·  Source: corona-warn-app/cwa-app-android

Describe the bug

A HTTP 404 error occurs when klicking on 'Häufige Fragen'

Expected behaviour

A functioning page for example https://www.bundesregierung.de/breg-de/themen/corona-warn-app/corona-warn-app-faq-1758392

Steps to reproduce the issue

  1. Open the App and click on 'Häufige Fragen'
    image

  2. Load the Page

  3. See a 404 Error Page

  4. Link to https://www.bundesregierung.de/breg-de/themen/coronavirus/corona-warn-app-faq-1759130

Technical details

App version: 1.0.0

  • Samsung Galaxy S8 Plus (Virtual Device)
  • Moto G5s Plus
    Date/Time 13:35 Mittwoch, 17. Juni 2020 (MESZ) Error Page Screenshot

Possible Fix

Replace the link https://www.bundesregierung.de/breg-de/themen/coronavirus/corona-warn-app-faq-1759130 with for example https://www.bundesregierung.de/breg-de/themen/corona-warn-app/corona-warn-app-faq-1758392

Additional context


image
(The 404 Page)

Edit:
image

bug in review

Most helpful comment

This has been passed on to the appropriate people :)

All 8 comments

Excellent spot. Why is there a number at the end anyways? Is this for versioning?

Shouldn't we be linking to the non-Bundesregierung, that is project website, instead? At least the links need to be non-breaking on Bundesregierung.

My app links to corona-warn-app-faq-1758636

Why the different numbers at the end? Load balancing? But that's a stupid way of doing it if it sometimes breaks.

Okay, this is very strange. I just tested the app on a new virtual device and the error no longer occurs

image

As this is resolved I'll close this issue. Thanks for contributing! :)

It may be worth for the SAP team to ping the Bundesregierungs-Website team.
Just because an error that sometimes occurs disappears for the person who reports doesn't mean the root cause has been fixed.
Maintainers, your feedback is requested :) @SebastianWolf-SAP @tkowark @jakobmoellersap @harambasicluka

This has been passed on to the appropriate people :)

Thank you @kolyaopahle!

Hi,

I'm one of the developers working on the CMS for www.bundesregierung.de and I looked into this issue.

As noted by @kolyaopahle the app doesn't access this URL directly, but uses a 'prettier' URL that gets redirects to the real URL by our CMS. This was done for two reasons: 1) the content structure and therefore the URL wasn't finalized when we collaborated with RKI/SAP on this, 2) it allows the editorial staff to change the content more easily without having to update the URL in the app.

The numbers in the final URLs are actually not for load balancing, but are content-IDs, and the URL ending with -1759130 is actually the ID of a placeholder document that was used in the CMS before the App went Live, and hasn't been accessible since June 15th, so I was quiet surprised to see that this URL made it out "into the wild".

Bad news: It seems we used a 301 return code instead of a 302 for the redirect, and somehow the pre-launch URL was accessed and cached somewhere - either by @DE-Max-42's device himself or some proxy/caching infrastructure that he is accessing. Unfortunately neither the App nor the CMS can do anything to clear those cached entries, if they exist.

Good news: There doesn't seem to be a significant number of calls to the outdated URL. (according to our server logs less than 10 requests in the past 48h, with most of them seeming to come from this very github issue)

We will keep an eye on the access logs to see if there is still a significant amount of requests to the the outdated URL and if so, add a special redirect for this URL to the correct URL. And we will also change our redirect logic to send 302s instead of 301s (or add a cache-control header with a sensible ttl) so that they will no longer be cached.

Was this page helpful?
0 / 5 - 0 ratings