? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
5 Feb 2015

In error conditions that cannot render the error template, we fall back to just echoing a message. However, it is possible that this message will send a HTTP 200 OK header. In reality, we should be sending an error header back. This PR will try to send a HTTP 500 error header if the headers have not already been sent.

Test Instructions

The easiest way to get here is to have your database server offline. Without the patch, you should get a HTTP 200 header when you see this message. Apply the patch and try the request again; a 500 header should be sent.

avatar mbabker mbabker - open - 5 Feb 2015
avatar jissues-bot jissues-bot - change - 5 Feb 2015
Labels Added: ?
avatar zero-24
zero-24 - comment - 5 Feb 2015

@mbabker have you any easy way to check the HTTP Header?

avatar Bakual
Bakual - comment - 5 Feb 2015

You can use Fiddler (http://www.telerik.com/fiddler) to inspect them. There are probably also easier tools.

avatar mbabker
mbabker - comment - 5 Feb 2015

If you're using Google Chrome, the dev tools will show the responses on the network tab. I think Firefox is similar.

avatar brianteeman
brianteeman - comment - 5 Feb 2015

@test confirm that with the db unavailable the error message has a http header of 200
Applied the patch and the header is 500

avatar brianteeman brianteeman - alter_testresult - 5 Feb 2015 - brianteeman: Tested successfully
avatar zero-24
zero-24 - comment - 5 Feb 2015

Thanks for the tips. @test success --> RTC (403 API rate limit exceeded for jissues-bot) so only here for the moment

avatar brianteeman brianteeman - change - 5 Feb 2015
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 5 Feb 2015

Rtc


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5984.
avatar zero-24 zero-24 - test_item - 5 Feb 2015 - Tested successfully
avatar brianteeman brianteeman - change - 5 Feb 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 5 Feb 2015
Category Libraries
avatar zero-24 zero-24 - change - 5 Feb 2015
Easy No Yes
avatar wilsonge
wilsonge - comment - 5 Feb 2015

Merged. Thanks Michael!

avatar wilsonge wilsonge - reference | - 5 Feb 15
avatar wilsonge wilsonge - merge - 5 Feb 2015
avatar wilsonge wilsonge - close - 5 Feb 2015
avatar wilsonge wilsonge - change - 5 Feb 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-02-05 21:42:47
avatar wilsonge wilsonge - close - 5 Feb 2015

Add a Comment

Login with GitHub to post a comment