Page MenuHomePhabricator

Empty wikibase_item results for some articles
Open, Needs TriagePublicBUG REPORT

Description

I have noticed that for some articles despite Wikidata link appears when viewing article, API results returns no Wikidata ID.

Example:
https://ru.wikipedia.org/w/api.php?action=query&format=xml&prop=pageprops&pageids=9042787%7C8198125&ppprop=wikibase_item
->

<?xml version="1.0"?>
<api batchcomplete="">
  <query>
    <pages>
      <page _idx="8198125" pageid="8198125" ns="0" title="100 км ж/д">
        <pageprops wikibase_item="Q17121960" />
      </page>
      <page _idx="9042787" pageid="9042787" ns="0" title="Бекет (Курская область)" />
    </pages>
  </query>
</api>

In this example, page #8198125 returns correct result (Q17121960), page #9042787 returns nothing, while should return Q19685645.

Of course, to catch this bug you should act quickly because any change to article or item can ruin glitch state.

This report may be related to T233520.

Event Timeline

Change 751971 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/Wikibase@master] Fix not fully dispatching Changes that added a sitelink

https://gerrit.wikimedia.org/r/751971

Change 751971 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Fix not fully dispatching Changes that added a sitelink

https://gerrit.wikimedia.org/r/751971