Project

General

Profile

Actions

Bug #3991

closed

Webrick doesnt except long URIs RequestURITooLarge

Bug #3991: Webrick doesnt except long URIs RequestURITooLarge

Added by bleevo (Chris Hampson) about 15 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
1.9
Backport:
[ruby-core:32924]

Description

=begin
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
=end

Actions

Also available in: PDF Atom