Last modified: 2014-09-11 19:43:46 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 T72690, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70690 - Categorymembers query won't start listing from the desired page using sortkey
Categorymembers query won't start listing from the desired page using sortkey
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.24rc
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-10 22:29 UTC by Peter Bowman
Modified: 2014-09-11 19:43 UTC (History)
5 users (show)

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


Attachments

Description Peter Bowman 2014-09-10 22:29:51 UTC
Given i.e. the page "ácido" and its hex sortkey 272b372d4301868d08010a00 retrieved through prop=categories, then packed and url-encoded, the request

http://pl.wiktionary.org/w/api.php?action=query&list=categorymembers&format=xml&cmtitle=Kategoria%3Ahiszpa%C5%84ski%20%28indeks%29&cmprop=title|sortkey&cmlimit=10&cmsort=sortkey&cmdir=desc&cmstartsortkey=%27%2B7-C%01%86%8D%08%01%0A%00

doesn't start listing from "ácido" (it should be on the top).
Comment 1 Brad Jorsch 2014-09-11 15:31:12 UTC
I wish cmsortkey didn't take input in binary; I suspect what's happening here is that some layer is trying to interpret the binary characters as UTF-8 and thereby screwing them up.

I think the real fix here will be deprecating cmstartsortkey and cmendsortkey in favor of something like cmstarthexsortkey and cmendhexsortkey that take the input hex-encoded.
Comment 2 Gerrit Notification Bot 2014-09-11 15:31:13 UTC
Change 159746 had a related patch set uploaded by Anomie:
API: Deprecate binary sortkey input in ApiQueryCategoryMembers

https://gerrit.wikimedia.org/r/159746
Comment 3 Gerrit Notification Bot 2014-09-11 18:41:30 UTC
Change 159746 merged by jenkins-bot:
API: Deprecate binary sortkey input in ApiQueryCategoryMembers

https://gerrit.wikimedia.org/r/159746
Comment 4 Brad Jorsch 2014-09-11 19:43:46 UTC
This should be deployed to WMF wikis with 1.24wmf22, see https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.

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


Navigation
Links