Closed Bug 762787 Opened 12 years ago Closed 12 years ago

Reduce CGI_URI_LIMIT from 8000 to 2083 when using Internet Explorer

Categories

(Bugzilla :: Bugzilla-General, defect)

4.0.6
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: glob, Assigned: mail)

Details

Attachments

(1 file, 1 obsolete file)

bug 513989 introduced CGI_URI_LIMIT set at 8000 to protect against 414 errors.
8000 was used as it falls just under apache httpd's default max uri length.

unfortunately internet explorer does not support urls that have more than 2083 characters (see http://support.microsoft.com/kb/208427).

we should change CGI_URI_LIMIT to 2083
Attached patch v1 patch (obsolete) — Splinter Review
Included a patch to move this along :)

  -- simon
Attachment #632066 - Flags: review?
Comment on attachment 632066 [details] [diff] [review]
v1 patch

>-use constant CGI_URI_LIMIT => 8000;
>+# See http://support.microsoft.com/kb/208427
>+use constant CGI_URI_LIMIT => 2083;

I see no reason to reduce this limit for all browsers because IE sucks. We should keep 8000 unless IE is explicitly detected. Something like:

  use constant CGI_URI_LIMIT => $ENV{'HTTP_USER_AGENT'} =~ /foo/ ? 2083 : 8000;
Attachment #632066 - Flags: review? → review-
Attached patch v2 patchSplinter Review
Now with recommended changes.
Assignee: general → sgreen+mozilla
Attachment #632066 - Attachment is obsolete: true
Status: NEW → UNCONFIRMED
Ever confirmed: false
Attachment #632074 - Flags: review?
OS: Mac OS X → All
Hardware: x86 → All
Attachment #632074 - Flags: review? → review?(glob)
Comment on attachment 632074 [details] [diff] [review]
v2 patch

r=glob
Attachment #632074 - Flags: review?(glob) → review+
Flags: approval?
Severity: normal → minor
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: approval? → approval+
Target Milestone: --- → Bugzilla 4.4
Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Constants.pm
Committed revision 8275.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Constants.pm
Committed revision 8276.
Summary: reduce CGI_URI_LIMIT from 8000 to 2083 → Reduce CGI_URI_LIMIT from 8000 to 2083 when using Internet Explorer
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: