mirror of
https://github.com/redmine/redmine.git
synced 2026-04-02 10:40:48 +02:00
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23844 e93f8b46-1217-0410-a6f0-8f06a7374b81
22 lines
824 B
Ruby
22 lines
824 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'])
|
|
|
|
# Explicitly load 'logger' to avoid NameError with concurrent-ruby 1.3.5.
|
|
# Reference: https://github.com/rails/rails/issues/54272
|
|
require 'logger'
|