https://bugzilla.wikimedia.org/show_bug.cgi?id=39460
Web browser: ---
Bug #: 39460
Summary: Database errors return HTTP 200 OK
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 10982
--> https://bugzilla.wikimedia.org/attachment.cgi?id=10982
Patch against 1.19.1
If a DBError is thrown – such as when MySQL is returning the "too many
connections" error – MediaWiki returns an error page with the HTTP 200 OK
status code. This is quite troublesome, since automatic polling by Varnish only
checks the status code of the returned page to determine whether the backend is
healthy or not.
I have attached a simple patch to work around this problem. I notice I have to
use the PHP header function directly instead of going via $wgOut – I suppose
that's because the error page is being output raw instead of through
OutputPage.
--
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