Page MenuHomePhabricator

Special:MostLinkedCategories shows links to non-existent categories with 0 members
Closed, ResolvedPublic

Description

My understanding is that Special:MostLinkedCategories should display links to:

  1. existent categories with >0 members,
  2. non-existent categories with >0 members,
  3. (possibly) existent categories with 0 members.

On the other hand, it should *not* display links to:

  1. non-existent categories with 0 members.

Case 4. originates from 3. by removing a page from the respective category or by deleting an unused category.

Links from case 4. are currently displayed in the Special:MostLinkedCategories list - this is the point of this bug report.

Also note that Special:MostLinkedPages and Special:MostLinkedTemplates do not contain links to non-existent pages/templates with 0 links/transclusions.

Some links to show you what I mean:
https://en.wikipedia.org/w/index.php?title=Special:MostLinkedCategories&limit=500&offset=1500000
https://wiki.archlinux.org/index.php?title=Special:MostLinkedCategories&limit=500&offset=1500


Version: 1.22.0
Severity: normal

Details

Reference
bz58967

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:26 AM
bzimport set Reference to bz58967.
bzimport added a subscriber: Unknown Object (MLST).

dariogiova wrote:

I'm just adding that this behaviour may allow a malicious user to leave traces of e.g. spamming or defamatory Category names by just adding one article to such a Category, whose "wanted" name would appearently stay in the list without the possibility of being removed.

Change 103856 had a related patch set uploaded by Brian Wolff:
Don't include empty categories in Special:Mostlinkedcategories

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

Change 103856 merged by jenkins-bot:
Don't include empty categories in Special:Mostlinkedcategories

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