Page MenuHomePhabricator

Borked API response has HTML DB error appended in case of database lock timeout
Open, MediumPublic


Author: M8R-udfkkf

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:

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 "-W3CDTD XHTML 1.0 Transitional//EN" "">
<html lang="en" dir="ltr" class="client-nojs" xmlns="">
<title>Database error - Wikimedia Commons</title>

The response included the html page appended to the normal xml response.

Version: unspecified
Severity: normal
See Also:



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:14 AM
bzimport set Reference to bz35305.
bzimport added a subscriber: Unknown Object (MLST).

EN.WP.ST47 wrote:

I wonder if this is the same as bug 35300, only this one is coherent?

M8R-udfkkf wrote:

One borked response

Request + Response (it's Fiddler's zip file)


M8R-udfkkf wrote:

Another borked response


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

(Fiddler files are just zip files with a particular file layout in the archive. Mime type on the attachments adjusted appropriately.)

Kind of reminds me of bug 33917.