Page MenuHomePhabricator

using "from=" in category urls can incorrectly say that categories are empty
Open, MediumPublic

Description

In current Wikimedia version of Mediawiki using category urls with "from=Something" will say that the category is empty if all sortkeys are aphabetically smaller than "Something". And no "previous 200 link" is shown.
Example: http://sv.wikipedia.org/wiki/Kategori:Spelare_i_FK_Austria_Wien?from=Y&uselang=en

Similar problem can be seen for the subcat, page, and media sections of a category if the new "subcatfrom=", "pagefrom=", and "filefrom=" parameters or old "from=" parameter is greater than all sort keys in a section. Then that section and its previous link is not shown.

The "until", "subcatuntil", "pageuntil", and "fileuntil" parameters have the same bug (but in the other direction).


Version: unspecified
Severity: normal

Event Timeline

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

The erroneous message is in "MediaWiki:Category-empty", and in English, it gives this incorrect message: "There are no pages or files in this category."

On this "no pages or files" results page, there are also no "previous page / next page" links, even though there should be a "previous page" link if you are at the end of the alphabet or a "next page" link if you are at the beginning of the alphabet.

Will looks like this, a little bit strange..?

image.png (429×768 px, 45 KB)

Change 789968 had a related patch set uploaded (by Stang; author: Stang):

[mediawiki/core@master] CategoryViewer: Display count link if from/until parameter is set

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

Aklapper added subscribers: Stang, Aklapper.

@Stang: Removing task assignee as this open task has been assigned for more than two years - See the email sent to task assignee on October 11th.
Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome! :)
If this task has been resolved in the meantime, or should not be worked on by anybody ("declined"), please update its task status via "Add Action… 🡒 Change Status".
Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator. Thanks!

Change #1187878 had a related patch set uploaded (by Tejashxv; author: C. Scott Ananian):

[mediawiki/core@master] CategoryViewer: Show paging links at endpoints even when no results

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

Change #789968 abandoned by Hashar:

[mediawiki/core@master] CategoryViewer: Display count link if from/until parameter is set

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

Change #789968 restored by Thcipriani:

[mediawiki/core@master] CategoryViewer: Display count link if from/until parameter is set

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