Actions
Bug #2974
closedWEBrick error in httpstatus
Status:
Closed
Assignee:
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
Description
=begin
HTTPStatus has some Status classes, which derive from StandardError < Exception.
In Status::initialize, message (which should return a string) is defined to self.class (which is not a string). When the exception is raised, trying to read its message and manipulate it as a string fails.
This issue causes redmine to behave strange when it raises HttpNotModified exception (http 304). It crashes on HTMLUtils escape, and thus return http 500 internal error, leaving the browser without the requested file (which is .js or .css).
I'm attaching a patch I wrote for that. I don't have any experience with ruby, so I just did what felt right. Feel free to modify it as needed :)
=end
Files
Actions
Like0
Like0Like0Like0Like0Like0