Last modified: 2013-04-22 16:16:05 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 T45221, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43221 - invalid XML response ("4::olduser", "5::newuser", "6::edits" appears as node attributes)
invalid XML response ("4::olduser", "5::newuser", "6::edits" appears as node ...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: High critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 43455 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-18 06:13 UTC by bianjiang
Modified: 2013-04-22 16:16 UTC (History)
9 users (show)

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


Attachments

Description bianjiang 2012-12-18 06:13:23 UTC
The following api request got invalid XML content:

http://en.wikipedia.org/w/api.php?action=query&format=xml&list=recentchanges&rclimit=90&rcnamespace=0%7C2%7C4%7C6%7C10%7C14%7C100&rcprop=comment%7Cflags%7Cids%7Cloginfo%7Csizes%7Ctimestamp%7Ctitle%7Cuser&rcstart=2012-12-18T04:55:35Z


After splitting the response by ">", the buggy line is ~line108, where "4::olduser", "5::newuser", "6::edits" are invalid XML attributes.

<rc type="log" ns="2" title="User:Nikolaepa78" rcid="544675367" pageid="0" revid="0" old_revid="0" user="MBisanz" oldlen="0" newlen="0" timestamp="2012-12-18T04:54:36Z" comment="WP:CHU"     logid="46399621" logtype="renameuser" logaction="renameuser" 4::olduser="Nikolaepa78" 5::newuser="Rgsseht" 6::edits="2" />
109 <rc type="edit" ns="0" title="Habítame Siempre" rcid="544675366" pageid="37430287" revid="528587893" old_revid="528474089" user="184.189.232.69" anon="" oldlen="29870" newlen="29871" ti    mestamp="2012-12-18T04:54:35Z" comment="/* Weekly charts */ " />


similar bug happened before: https://bugzilla.wikimedia.org/show_bug.cgi?id=40299
Comment 1 bianjiang 2012-12-18 17:15:49 UTC
The bug also appears on commons.wikimedia.org:

http://commons.wikimedia.org/w/api.php?action=query&format=xml&list=recentchanges&rclimit=339&rcnamespace=0%7C2%7C4%7C6%7C10%7C14&rcprop=comment%7Cflags%7Cids%7Cloginfo%7Csizes%7Ctimestamp%7Ctitle%7Cuser&rcstart=2012-12-18T15:38:50Z

<rc type="log" ns="2" title="User:Der Kreole" rcid="86419746" pageid="4497688" revid="0" old_revid="0" user="EugeneZelenko" oldlen="0" newlen="0" timestamp="2012-12-18T15:26:07Z" comment="Request on [[Commons:Changing username]]" logid="51572035" logtype="renameuser" logaction="renameuser" 4::olduser="Der Kreole" 5::newuser="Ucevista" 6::edits="69" />
Comment 2 Brad Jorsch 2012-12-18 17:35:37 UTC
The problem is that the format of keys for log entry parameters was changed, such that we can't use them directly as XML attribute names.

Determining the best fix may require some discussion; I've posted[1] an RFC to the mediawiki-api mailing list.

 [1]: http://lists.wikimedia.org/pipermail/mediawiki-api/2012-December/002776.html
Comment 3 Marius Hoch 2012-12-18 18:09:54 UTC
https://gerrit.wikimedia.org/r/39221 will fix this particular bug.

(No. 2 of Brad Jorsch's suggestion)
Comment 4 Alexandre Emsenhuber [IAlex] 2012-12-20 13:16:27 UTC
Change merged.
Comment 6 Marius Hoch 2012-12-21 06:58:56 UTC
It takes some time till software changes get deployed. This one will go live on January 7 on enwiki AFAIR
Comment 7 Alex Monk 2012-12-21 13:39:43 UTC
Resolved fixed means it's been fixed in the development version of MediaWiki. That doesn't mean Wikimedia have updated their live copy to it.
Comment 8 Brad Jorsch 2012-12-21 14:27:26 UTC
The change should be in 1.21wmf7. See https://www.mediawiki.org/wiki/MediaWiki_1.21/Roadmap for the schedule for deploying that to various wikis; it is currently scheduled for January 9 for enwiki.
Comment 9 Bawolff (Brian Wolff) 2012-12-27 06:08:53 UTC
*** Bug 43455 has been marked as a duplicate of this bug. ***

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


Navigation
Links