https://bugzilla.wikimedia.org/show_bug.cgi?id=36839
Web browser: ---
Bug #: 36839
Summary: Problem with non-ASCII characters and long requests
Product: MediaWiki
Version: 1.20-git
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
frwiki says Version = 1.20wmf2 on May 14
A few days ago, it was working correctly.
API seems to have trouble with page titles with non-ASCII characters when the
size of the API request is very long.
For example, a query request for templates (prop=templates) returns incorrect
results for page titles with non-ASCII characters, when the list of pages
(argument "titles=") contains several dozen pages : the API answer returns
incorrect page names when there are non-ASCII characters (é instead of é, ...)
and incorrect information (it doesn't use the correct page title).
But if the same request is made with a smaller list of pages, the API answer
becomes correct again.
Request with incorrect answer
=============================
http://fr.wikipedia.org/w/api.php?prop=templates&action=query&titles=Acteur%7CAlbert%20Robbins%7CAnglais%7CAnn%20Donahue%7CAnthony%20E.%20Zuiker%7CCarol%20Mendelsohn%7CCatherine%20Willows%7CDavid%20Hodges%7CDavid%20Phillips%7CGil%20Grissom%7CGreg%20Sanders%7CHodges%7CInternet%20Movie%20Database%7CJim%20Brass%7CLady%20Heather%7CLes%20Experts%20(s%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e)%7CLes%20Experts%20:%20Manhattan%7CLes%20Experts%20:%20Miami%7CListe%20des%20personnages%20des%20Experts%7CListe%20des%20%C3%A9pisodes%20des%20Experts%7CMod%C3%A8le%20discussion:Palette%20Les%20Experts%7CNick%20Stokes%7CPersonnage%20de%20fiction%7CPersonnage%20fictif%7CPersonnage%20de%20fiction%7CPersonnages%20r%C3%A9currents%20dans%20Les%20Experts%7CRaymond%20Langston%7CRiley%20Adams%7CSaison%201%20des%20Experts%7CSaison%2010%20des%20Experts%7CSaison%2011%20des%20Experts%7CSaison%2012%20des%20Experts%7CSaison%202%20des%20Experts%7CSaison%203%20des%20Experts%7CSaison%204%20des%20Experts%7CSaison%205%20des%20Experts%7CSaison%206%20des%20Experts%7CSaison%207%20des%20Experts%7CSaison%208%20des%20Experts%7CSaison%209%20des%20Experts%7CSara%20Sidle%7CSofia%20Curtis%7CS%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e%7CWallace%20Langham%7CWarrick%20Brown%7CWendy%20Simms%7C%C3%89tats-Unis
Answer :
<?xml version="1.0"?>
<api>
<query>
<pages>
<page ns="0" title="Les Experts (série télévisée)" missing="" />
<page ns="0" title="Liste des épisodes des Experts" missing="" />
<page ns="0" title="Modèle discussion:Palette Les Experts" missing="" />
<page ns="0" title="Personnages récurrents dans Les Experts" missing=""
/>
<page ns="0" title="Série télévisée" missing="" />
<page ns="0" title="Wallace Langham" missing="" />
<page ns="0" title="États-Unis" missing="" />
<page pageid="43579" ns="0" title="Acteur" />
Request with correct answer
===========================
http://fr.wikipedia.org/w/api.php?prop=templates&action=query&titles=Acteur%7CAlbert%20Robbins%7CAnglais%7CAnn%20Donahue%7CAnthony%20E.%20Zuiker%7CCarol%20Mendelsohn%7CCatherine%20Willows%7CDavid%20Hodges%7CDavid%20Phillips%7CGil%20Grissom%7CGreg%20Sanders%7CHodges%7CInternet%20Movie%20Database%7CJim%20Brass%7CLady%20Heather%7CLes%20Experts%20(s%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e)%7CLes%20Experts%20:%20Manhattan%7CLes%20Experts%20:%20Miami%7CListe%20des%20personnages%20des%20Experts%7CListe%20des%20%C3%A9pisodes%20des%20Experts%7CMod%C3%A8le%20discussion:Palette%20Les%20Experts%7CPersonnages%20r%C3%A9currents%20dans%20Les%20Experts%7CS%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e%7C%C3%89tats-Unis
Answer :
<api>
<query>
<pages>
<page ns="0" title="Modèle discussion:Palette Les Experts" missing="" />
<page pageid="43579" ns="0" title="Acteur" />
<page pageid="4307505" ns="0" title="Albert Robbins" />
<page pageid="5539" ns="0" title="Anglais">
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l