Last modified: 2013-10-23 18:16:59 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 T35570, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33570 - DatabaseError is served without encoding information
DatabaseError is served without encoding information
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-06 22:22 UTC by db [inactive,noenotif]
Modified: 2013-10-23 18:16 UTC (History)
2 users (show)

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


Attachments

Description db [inactive,noenotif] 2012-01-06 22:22:15 UTC
The current DatabaseError ("Sorry! This site is experiencing technical difficulties.") and the google search form are served without a html header and without coding information. This breaks multibyte characters like german umlaute on that page, because the page is served in utf-8 from MediaWiki (default behaviour) but the IE is using another coding (when automatic selection is on). In my opinion should it possible to give a valid html page on a database error. You have not to use the database in that moment for valid html. Thanks.
Comment 1 db [inactive,noenotif] 2012-01-06 22:33:48 UTC
Yes, encoding is a better word. Thanks.
Comment 2 Brion Vibber 2012-01-08 20:57:09 UTC
Reporting seems to go through MWException::reportHTML()'s non-OutputPage path, which explicitly sends "Content-Type: text/xhtml; charset=utf-8".

This should set the encoding just fine, and shouldn't require anything additional -- unless something else has started output already by mistake, such as PHP's error reporting.

What are the exact circumstances of the error you're seeing? Can you reproduce it regularly for testing?
Comment 3 Platonides 2012-01-08 21:02:56 UTC
Is it really on trunk? I fixed that problem not too long ago, precisely by adding that header in r103339.
Comment 4 db [inactive,noenotif] 2012-01-10 18:18:46 UTC
(In reply to comment #3)
> Is it really on trunk? I fixed that problem not too long ago, precisely by
> adding that header in r103339.

The errors were under 1.18. But that fix looks good, making FIXED.

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


Navigation
Links