Last modified: 2011-10-18 06:57:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17321, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15321 - Categories with description page but without members aren't in the category table
Categories with description page but without members aren't in the category t...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.14.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-26 12:56 UTC by Roan Kattouw
Modified: 2011-10-18 06:57 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2008-08-26 12:56:37 UTC
Oddly, entries in the category table are only created when a category gets its first member. The creation of a Category: page does not create a row in the category table, but it should. This causes http://www.mediawiki.org/wiki/Talk:API#Generator_.2B_categoryinfo_bug
Comment 1 Lupo 2011-10-18 06:57:20 UTC
This bug is still present in 1.18. Witness the two queries:

http://commons.wikimedia.org/w/api.php?action=query&prop=info|links|categories|categoryinfo&plnamespace=14&pllimit=10&cllimit=10&format=jsonfm&titles=Category:PD-VAR

PD-VAR is a category with an existing category page, but without any category members. The API does not return any categoryinfo.

http://commons.wikimedia.org/w/api.php?action=query&prop=info|links|categories|categoryinfo&plnamespace=14&pllimit=10&cllimit=10&format=jsonfm&titles=Category:PD_Finland

Same query with PD_Finland, a category with members: the API does return categoryinfo.

This is causing a subtle bug in HotCat, which uses categoryinfo to figure out whether a category is a __HIDDENCAT__. Both categories are hidden, but since only one returns a categoryinfo, HotCat sees only one of them as hidden.

The workaround for HotCat would be a bit convoluted: get the contents of MediaWiki:Hidden-category-category, then check whether the category specified by this system message is in the categories of the checked category. Unfortunately, getting MediaWiki:Hidden-category-category would be one remote request more...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links