Ticket #133 (new defect)

Opened 5 months ago

Last modified 3 months ago

trailing nulls in content body of error html

Reported by: Andrew Bullock <trullock@…> Owned by: serialseb
Priority: low Milestone:
Component: Core Version:
Keywords: Cc:
Time remaining: 1d Blocked By:
Time spent: 1d Time planned: 1d
Blocking:

Description (last modified by serialseb) (diff)

I'm getting this response in the case of an error:

HTTP/1.1 500 Internal Server Error
Server: ASP.NET Development Server/9.0.0.0
Date: Sun, 21 Feb 2010 21:45:39 GMT
X-AspNet-Version: 2.0.50727
Content-Length: 513
Cache-Control: private
Content-Type: text/html
Connection: Close

<html><head><title>OpenRasta encountered an error.</title></head><body><div class="errorList"><dl><dt>Fatal error</dt><dd><pre>An exception was thrown while processing a pipeline contributor</pre></dd></dl></div></body></html>�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

This is from fiddler, I don't know if its the content length being calculated incorrectly and fiddler is adding the extra nulls (0x00) at the end or if they are genuinely being sent. i suspect the latter although i cant debug where theyre coming from. doesnt look like its the HtmlErrorCodec? :s

Attachments

Change History

Changed 5 months ago by anonymous

nope, they're added in the codecs to pad the content to the minimum length required for IE to not display friendly errors.

The null shouldn't be an issue though, can move to a 0x20 if it makes more sense?

Changed 5 months ago by Andrew Bullock <trullock@…>

Webkit complains that there is extra content past the end of the document, making it invalid.

Perhaps a way to kill two birds with one stone is to make the HtmlErrorPage? display more content, like the exception data and stacktrace which would make debugging much easier. I've got a patch for this i can send you, or i'll check it into the trunk. I'll get you a copyright grant tomorrow if that gets me the uploadcodez

Changed 3 months ago by serialseb

If you've sent the agreement, feel free to ping me i'll add you write access on the rc branch, you can go fix it :)

(missed this one as i didn't get notification there was a new comment. I hate trac, it sucks)

Changed 3 months ago by serialseb

  • description modified (diff)

Add/Change #133 (trailing nulls in content body of error html)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.