]> source.dussan.org Git - redmine.git/commit
Fix "ArgumentError: Invalid response name: unprocessable_entity" with Rack 3.1.0...
authorGo MAEDA <maeda@farend.jp>
Wed, 12 Jun 2024 16:09:37 +0000 (16:09 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 12 Jun 2024 16:09:37 +0000 (16:09 +0000)
commitb803bddb1f32842b0a5ec93640778d902b5f7999
treefb1dba7c75c0dc0111516d2d4384b89ecefb5e1a
parente41bc39322cae528d1c24256f6f404f5937d78ab
Fix "ArgumentError: Invalid response name: unprocessable_entity" with Rack 3.1.0+ in assert_response (#39889).

Rack 3.1.0 changed the symbol for HTTP status code 422 from `:unprocessable_entity` to `:unprocessable_content`.
Due to the change, `assert_response(:unprocessable_entity, ...)` raises ArgumentError with Rack 3.1.0+.

This fix is a follow-up to r22837.

git-svn-id: https://svn.redmine.org/redmine/trunk@22876 e93f8b46-1217-0410-a6f0-8f06a7374b81
33 files changed:
Gemfile
app/controllers/application_controller.rb
app/controllers/boards_controller.rb
app/controllers/custom_fields_controller.rb
app/controllers/enumerations_controller.rb
app/controllers/issue_statuses_controller.rb
app/controllers/issues_controller.rb
app/controllers/mail_handler_controller.rb
app/controllers/members_controller.rb
app/controllers/roles_controller.rb
app/controllers/sys_controller.rb
app/controllers/trackers_controller.rb
app/controllers/users_controller.rb
app/controllers/versions_controller.rb
test/functional/issues_controller_test.rb
test/functional/mail_handler_controller_test.rb
test/functional/my_controller_test.rb
test/functional/sys_controller_test.rb
test/functional/users_controller_test.rb
test/integration/api_test/attachments_test.rb
test/integration/api_test/groups_test.rb
test/integration/api_test/issue_categories_test.rb
test/integration/api_test/issue_relations_test.rb
test/integration/api_test/issues_test.rb
test/integration/api_test/memberships_test.rb
test/integration/api_test/my_test.rb
test/integration/api_test/news_test.rb
test/integration/api_test/projects_test.rb
test/integration/api_test/repositories_test.rb
test/integration/api_test/time_entries_test.rb
test/integration/api_test/users_test.rb
test/integration/api_test/versions_test.rb
test/integration/application_test.rb