Last modified: 2013-09-04 10:36:14 UTC
Due to titleToKey() for the third part of the continue param some continues does not. For example the language 'de' has the canonical name for NS_FILE "Datei". When having a continue like "1|commons|File:Wiki.png" the last part is changed to "Datei:Wiki.png" and the continue cannot work, because D < F. For the continue "1|commons|Category:Test" the result starts with K, because 'de' has NS_CATEGORY = "Kategorie" Maybe give the interwiki also to titleToKey, so the validation of the title is done, but not a change of the namespace. Thanks.
(In reply to comment #0) > Due to titleToKey() for the third part of the continue param some continues > does not. > > For example the language 'de' has the canonical name for NS_FILE "Datei". When > having a continue like "1|commons|File:Wiki.png" the last part is changed to > "Datei:Wiki.png" and the continue cannot work, because D < F. > > For the continue "1|commons|Category:Test" the result starts with K, because > 'de' has NS_CATEGORY = "Kategorie" > > Maybe give the interwiki also to titleToKey, so the validation of the title is > done, but not a change of the namespace. > > Thanks. What?
http://en.wikipedia.org/w/api.php?action=query&list=iwbacklinks&iwblprefix=commons&iwbllimit=max&iwblcontinue=commons|Image:Test|0&iwblprop=iwprefix|iwtitle The continue contains Image:Test, but the api is continue at File:Test.
Just dropping the key <-> title conversions in this module should do it.
Committed to merge queue: https://gerrit.wikimedia.org/r/6364
A more comprehensive changeset, cleaning up this issue in 14 core API modules, is Gerrit change #8407.
*** Bug 43511 has been marked as a duplicate of this bug. ***