Project

General

Profile

Actions

Defect #43733

open

If you have a lot of statuses and try to save when open the workflow with all statuses showing you get at a 404

Added by Jimmy Westberg about 15 hours ago. Updated about 9 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Rails support
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

It's easy to fix.

config/boot.rb

# frozen_string_literal: true

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

# CHANGES BELOW
# Rack::QueryParser accept limit (default = 4096 ?)
ENV["RACK_QUERY_PARSER_PARAMS_LIMIT"]   ||= "200000" 

# Also added a larger body size limit (default around 4MB ?)
ENV["RACK_QUERY_PARSER_BYTESIZE_LIMIT"] ||= "52428800" # 50 MB

I don't suggest that the default values should change but at least make the error descriptive and not just a quiet 404 on the /update endpoint.


Related issues

Related to Redmine - Defect #42875: "Page not found" error when saving workflows with many statuses on Rack >= 3.1.14ClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF