Page MenuHomePhabricator

Language switching issues when viewing an article that exists only in English and Javanese
Open, MediumPublicBUG REPORT

Description

Tested on 6.8.0 (1804)

Steps:

  1. In English, navigate to the article Johnny Marzetti
  2. Using the language chooser, choose Javanese and view the article
  3. Attempt to switch back to English

Expected Result:
The English language is a choice in the language chooser

Actual Result:
The English language does not appear in the language chooser after selecting Javanese

Note - I was unable to reproduce this bug on any other article so far. If the article is in multiple languages beyond just English and Javanese, language switching appears to work fine between English and Javanese. I found an article that has only English and Urdu versions and the language picker worked fine there as well.

Johnny Marzetti - Article in English and Javanese only

IMG_4033.PNG (2×1 px, 3 MB)

IMG_4032.PNG (2×1 px, 207 KB)

IMG_4031.PNG (2×1 px, 3 MB)

IMG_4034.PNG (2×1 px, 171 KB)

Event Timeline

It looks like the JSON being returned does not include any valid language links.

When querying from the English version of the article the URL:

https://en.wikipedia.org/w/api.php?action=query&format=json&llinlanguagecode=en&lllimit=500&llprop=langname%7Cautonym&prop=langlinks&redirects=&titles=Johnny%20Marzetti

Returns the JSON:

{
  "batchcomplete": "",
  "query": {
    "pages": {
      "8670831": {
        "pageid": 8670831,
        "ns": 0,
        "title": "Johnny Marzetti",
        "langlinks": [
          {
            "lang": "jv",
            "langname": "Javanese",
            "autonym": "Jawa",
            "*": "Johnny marzetti"
          }
        ]
      }
    }
  }
}

Querying from the Javanese article with URL:

https://jv.wikipedia.org/w/api.php?action=query&format=json&llinlanguagecode=en&lllimit=500&llprop=langname%7Cautonym&prop=langlinks&redirects=&titles=Johnny%20marzetti

Returns JSON with no language link values:

{
  "batchcomplete": "",
  "query": {
    "pages": {
      "176601": {
        "pageid": 176601,
        "ns": 0,
        "title": "Johnny marzetti"
      }
    }
  }
}

Note that the URL sent to jv.wikipedia.org seems to be correct. For example a similar request to jv.wikipedia.org correctly returns language links:

https://jv.wikipedia.org/w/api.php?action=query&format=json&llinlanguagecode=en&lllimit=500&llprop=langname%7Cautonym&prop=langlinks&redirects=&titles=Pasta

@JMinor tagging Platform Engineering to look into further, this appears to be a server-side issue.

JMinor lowered the priority of this task from High to Medium.
JMinor added a subscriber: James_Dempsey.
Aklapper changed the subtype of this task from "Task" to "Bug Report".Feb 17 2023, 8:21 AM