mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23841 e93f8b46-1217-0410-a6f0-8f06a7374b81
18 lines
675 B
Ruby
18 lines
675 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Rack 3.1.14 or later limits query parameters to 4096 by default, which
|
|
# prevents saving workflows with many statuses.
|
|
# Setting RACK_QUERY_PARSER_PARAMS_LIMIT to 65536 allows handling up to
|
|
# approximately 100 statuses.
|
|
#
|
|
# See also:
|
|
# - https://www.redmine.org/issues/42875
|
|
# - https://github.com/rack/rack/blob/v3.1.16/README.md#configuration
|
|
# - https://github.com/rack/rack/blob/v3.1.16/lib/rack/query_parser.rb#L57
|
|
ENV['RACK_QUERY_PARSER_PARAMS_LIMIT'] ||= '65536'
|
|
|
|
# Set up gems listed in the Gemfile.
|
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
|
|
|
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|