Uploaded image for project: 'Mojang Web Services'
  1. Mojang Web Services
  2. WEB-2571

minecraft.net 404/not found error with unsupported/no Accept-Language header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • minecraft.net
    • None
    • 764958

      Opening https://www.minecraft.net while the browser has no preferred website language configured (e.g. in Firefox the "Web Page Language Settings" list empty) or a language that isn't supported, results in a "not found" error (404).

      This also occurs when opening some subpages, for example https://www.minecraft.net/updates/nether/ (although it shows a styled error page).

      Tested and confirmed both in Firefox and Chrome (although in Chrome it doesn't seem easily possible to remove all languages, since the browser language itself can't be removed, however if the single remaining language isn't supported on minecraft.net, this issue still occurs).

      When the `Accept-Language` header contains a supported language, it correctly responds with a 302 to redirect to the appropriate site.

      A 404 error is also mentioned in WEB-1302, although that issue conflates two problems, so it wasn't quite clear if both were resolved at the time.

      Example (Results in 404):

      GET https://www.minecraft.net/

      Host: www.minecraft.net
      User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
      Accept-Language: af
      Accept-Encoding: gzip, deflate, br
      Connection: keep-alive
      Upgrade-Insecure-Requests: 1
      Cache-Control: max-age=0, no-cache
      TE: Trailers
      Pragma: no-cache

      Removing the `Accept-Language` header altogether results in a 404 as well. Changing it's value to e.g. `de` redirects correctly.

            Unassigned Unassigned
            tduva tduva
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: