Last modified: 2009-02-03 16:15:02 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 T19337, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17337 - API: Different results with &cmcontinue between using %20 and underline (_)
API: Different results with &cmcontinue between using %20 and underline (_)
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Roan Kattouw
http://he.wikisource.org/w/api.php?ac...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-03 14:19 UTC by Melancholie
Modified: 2009-02-03 16:15 UTC (History)
4 users (show)

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


Attachments

Comment 1 Platonides 2009-02-03 14:29:54 UTC
The first list show pages on the main namespace
The second one show pages on Template namespace

Comment 2 Roan Kattouw 2009-02-03 14:46:13 UTC
(In reply to comment #0)
> There are (very) different results with &cmcontinue between using %20 and
> underline (_). When using underlines, the results are wrong!
That's not very surprising, since you specified the wrong cmcontinue. The cmcontinue value given in the <query-continue> tag has spaces, not underscores, in it, so you should send spaces (urlencoded as %20), not underscores, back in the cmcontinue value. Resolving as INVALID for this reason.
Comment 3 Roan Kattouw 2009-02-03 14:52:56 UTC
One more remark: a quick look into the categorymembers code learns that the cmcontinue values are not titles, but sortkeys, which is why they're not normalized (underscores converted to spaces etc.) like titles are.
Comment 4 Melancholie 2009-02-03 16:03:27 UTC
Hmm, I do not understand why an underscore instead of %20 is making the API to output a template's data suddenly. Isn't that a bug?

Furthermore, is there a easy way to also allow underlines, beside spaces and %20? If not, at least make sure the results won't be those of other namespaces mysteriously (as there is no colon at all).
Comment 5 Roan Kattouw 2009-02-03 16:15:02 UTC
(In reply to comment #4)
> Hmm, I do not understand why an underscore instead of %20 is making the API to
> output a template's data suddenly. Isn't that a bug?
> 
No, Platonides was incorrect. The first request lists pages from both the main and Template namespaces, the second requests lists only pages in the template namespaces. It's the same list, but with a different starting point.

> Furthermore, is there a easy way to also allow underlines, beside spaces and
> %20? If not, at least make sure the results won't be those of other namespaces
> mysteriously (as there is no colon at all).
> 
They're SORTKEYS, not TITLES, as I said before. Sortkeys aren't normalizable or namespace-bound because they can literally be any string that doesn't contain ]].

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


Navigation
Links