[ruby-core:32924] [Ruby 1.9-Bug#3991][Open] Webrick doesnt except long URIs RequestURITooLarge

From: Chris Hampson <redmine@...>
Date: 2010-10-28 02:21:50 UTC
List: ruby-core #32924
Bug #3991: Webrick doesnt except long URIs RequestURITooLarge
http://redmine.ruby-lang.org/issues/show/3991

Author: Chris Hampson
Status: Open, Priority: Normal
ruby -v: 1.9

If your URI (plus the protocol portions) is longer than 1024 bytes you get an error of RequestURITooLarge

It is valid in the standard to have a URI longer than 1024 bytes.

Specifically this breaks support for OpenID.

Patch is easy.

class httprequest.rb 
method read_request_line

change 1024 to something more reasonable.

http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-an-url

I updated mine to 2083 which is the maximum length IE supports


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next