https://bugzilla.wikimedia.org/show_bug.cgi?id=15321

Lupo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Lupo <[email protected]> 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...

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to