Defect #42962 ยป 42962.patch
config/boot.rb | ||
---|---|---|
1 | 1 |
# frozen_string_literal: true |
2 | 2 | |
3 |
# Rack 3.1.14 or later limits query parameters to 4096 by default, which |
|
4 |
# prevents saving workflows with many statuses. |
|
5 |
# Setting RACK_QUERY_PARSER_PARAMS_LIMIT to 65536 allows handling up to |
|
6 |
# approximately 100 statuses. |
|
3 |
# Rack 3.1.14 or later sets default limits of 4MB for query string bytesize |
|
4 |
# and 4096 for the number of query parameters. These limits are too low |
|
5 |
# for Redmine and can cause the following issues: |
|
6 |
# |
|
7 |
# - The low bytesize limit prevents the mail handler from processing incoming |
|
8 |
# emails larger than 4MB (https://www.redmine.org/issues/42962) |
|
9 |
# - The low parameter limit prevents saving workflows with many statuses |
|
10 |
# (https://www.redmine.org/issues/42875) |
|
7 | 11 |
# |
8 | 12 |
# See also: |
9 |
# - https://www.redmine.org/issues/42875 |
|
10 | 13 |
# - https://github.com/rack/rack/blob/v3.1.16/README.md#configuration |
14 |
# - https://github.com/rack/rack/blob/v3.1.16/lib/rack/query_parser.rb#L54 |
|
11 | 15 |
# - https://github.com/rack/rack/blob/v3.1.16/lib/rack/query_parser.rb#L57 |
16 |
ENV['RACK_QUERY_PARSER_BYTESIZE_LIMIT'] ||= '33554432' |
|
12 | 17 |
ENV['RACK_QUERY_PARSER_PARAMS_LIMIT'] ||= '65536' |
13 | 18 | |
14 | 19 |
# Set up gems listed in the Gemfile. |