Last modified: 2012-12-11 11:01:47 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 T37305, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35305 - Borked API response has HTML DB error appended in case of database lock timeout
Borked API response has HTML DB error appended in case of database lock timeout
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-18 18:58 UTC by Smallman
Modified: 2012-12-11 11:01 UTC (History)
7 users (show)

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


Attachments
One borked response (8.67 KB, application/zip)
2012-03-18 21:35 UTC, Smallman
Details
Another borked response (8.67 KB, application/zip)
2012-03-18 21:36 UTC, Smallman
Details

Description Smallman 2012-03-18 18:58:59 UTC
I did an edit via the API, and had the API respond with the normal xml response, and the HTML version of the page was appended. 

I had the following post:
format=xml&action=edit&title=Category:Book+of+Exodus+%28Bible+Illustrations+by+Sweet+Media%29&text={{en|1=Bible+illustrations+from+Category:Book+of+Exodus]]+[[Category:Media+contributed+by+the+Sweet+Publishing]]&summary=Creating+category+for+biblical+book+illustrations+[[Commons:Bots%2FRequests%2FOrophinBot+2]]&bot=1&token=3000331c2badee4aec034824cb9bb54d%2B">http:%2F%2Fwww%2Edsmedia%2Eorg%2Fresources%2Fillustrations%2Fsweet%2Dpublishing%2FExodus}}%D%A[[Category:Book+of+Exodus]]+[[Category:Media+contributed+by+the+Sweet+Publishing]]&summary=Creating+category+for+biblical+book+illustrations+[[Commons:Bots%2FRequests%2FOrophinBot+2]]&bot=1&token=3000331c2badee4aec034824cb9bb54d%2B\

And got the following reply:

<?xml version="1.0"?><api><edit result="Success" pageid="18746270" title="Category:Book of Exodus (Bible Illustrations by Sweet Media)" nochange="" /></api><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Database error - Wikimedia Commons</title>
......

The response included the html page appended to the normal xml response.
Comment 1 Dan Collins 2012-03-18 19:05:05 UTC
I wonder if this is the same as bug 35300, only this one is coherent?
Comment 2 Smallman 2012-03-18 21:35:46 UTC
Created attachment 10258 [details]
One borked response

Request + Response (it's Fiddler's zip file)
Comment 3 Smallman 2012-03-18 21:36:15 UTC
Created attachment 10259 [details]
Another borked response
Comment 4 Mark A. Hershberger 2012-03-20 13:25:26 UTC
In both of those, the html that is appended is an error page for a database lock timeout:

  from within function "SiteStatsUpdate::doUpdate". Database returned error
  "1205: Lock wait timeout exceeded; try restarting transaction
  (10.0.6.41)".


(Fiddler files are just zip files with a particular file layout in the archive.  Mime type on the attachments adjusted appropriately.)
Comment 5 Bawolff (Brian Wolff) 2012-03-20 23:15:27 UTC
Kind of reminds me of bug 33917.

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


Navigation
Links