https://bugzilla.wikimedia.org/show_bug.cgi?id=72257

            Bug ID: 72257
           Summary: Unescaped characters in XML format response in
                    recentchange API
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

we are "wget" recentchange api, and parse the response in XML format.
characters like "&", double-quote are not properly escaped in the response. It
happened since ~1 hour ago.

example API request (actually it happens on all language sites)
(attachment is a copy, ~line 56 you can find an example. also you can also
reproduce it by changing an article with "&" in title)


http://en.wikipedia.org/w/api.php?action=query&format=xml&continue=&list=recentchanges&rclimit=500&rcnamespace=0%7C2%7C4%7C6%7C10%7C14%7C100%7C118%7C828&rcprop=comment%7Cflags%7Cids%7Cloginfo%7Csizes%7Ctimestamp%7Ctitle%7Cuser

and snippet from the response.
<rc type="edit" ns="10" title="Template:Infobox vanadium" pageid="10586283"
revid="630373828" old_revid="619432401" rcid="687830391" user="DePiep"
oldlen="3074" newlen="3043" timestamp="2014-10-20T13:47:28Z" comment="isotopes
table:rm double linking, use en-dash for "not existing" (not hyphen), replaced:
[[Positron emission ��� [[positron emission, above=- ��� above=��� using
[[Project:AWB|AWB]]"/>
<rc type="external" ns="0" title="Commiphora africana" pageid="37123832"
revid="611837345" old_revid="611837345" rcid="687830417" user="EmausBot"
anon="" bot="" minor="" oldlen="5607" newlen="5607"
timestamp="2014-10-20T13:47:26Z" comment=""/>
<rc type="external" ns="14" title="Category:Cyberwarfare" pageid="28844523"
revid="551240694" old_revid="551240694" rcid="687830416" user="Bjankuloski06"
anon="" minor="" oldlen="191" newlen="191" timestamp="2014-10-20T13:47:26Z"
comment=""/>

<rc type="external" ns="0" title="Outlaw Gentlemen & Shady Ladies"
pageid="38424498" revid="629055833" old_revid="629055833" rcid="687830199"
user="Dexbot" anon="" bot="" minor="" oldlen="20380" newlen="20380"
timestamp="2014-10-20T13:45:37Z" comment=""/>
<rc type="external" ns="0" title="Dacryodes edulis" pageid="10635487"
revid="620387604" old_revid="620387604" rcid="687830198" user="Lockal" anon=""
minor="" oldlen="7899" newlen="7899" timestamp="2014-10-20T13:45:37Z"
comment=""/>
<rc type="edit" ns="4" title="Wikipedia:Requests for mediation/Pending"
pageid="5917449" revid="630373641" old_revid="630057593" rcid="687830139"
user="MediationBot" oldlen="1201" newlen="1145"
timestamp="2014-10-20T13:45:35Z" comment="Updating pending case list, 2 listed.
Errors? [[User:MediationBot/shutoff/MedComClerk]]"/>
<rc type="edit" ns="0" title="Muhammad Nawaz Sharif University of Engineering &
Technology, Multan" pageid="44157005" revid="630373640" old_revid="630371603"
rcid="687830138" user="Umarkhaldoon" minor="" oldlen="4387" newlen="4441"
timestamp="2014-10-20T13:45:35Z" comment="/* Campuses */"/>

-- 
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

Reply via email to