Page MenuHomePhabricator

Nonexistent category returned by Commons MediaWiki API
Closed, DuplicatePublic


Our app allows the user to key in a string, and it queries the Commons MediaWiki API for categories beginning with that string. However, the API sometimes returns nonexistent categories when we query it.

For instance, if we query for categories beginning with 'badge', the first result is Badge. However, does not exist and does not appear to have ever existed.

Are we doing something wrong, or is this a bug in the Commons MediaWiki API?

(This is currently being discussed at )

Event Timeline

Restricted Application added subscribers: Zppix, Poyekhali, Steinsplitter, Aklapper. · View Herald TranscriptJul 11 2016, 5:41 AM
josephine_l updated the task description. (Show Details)Jul 11 2016, 5:44 AM
josephine_l updated the task description. (Show Details)
Anomie closed this task as Invalid.Jul 11 2016, 1:52 PM
Anomie added a subscriber: Anomie.

The definition of "category" for list=allcategory includes anything that was ever a category on a page, even if it doesn't have any members anymore. This is independent of whether a corresponding page ever existed in the Category namespace.

See also T28411: Entries for non-existent categories with no members should be deleted from the 'category' table.