From 66fc9f463dbca69529df106338cafcc46f5fa115 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 28 May 2021 03:58:01 +0000 Subject: Gracefully handle invalid query parameters for custom fields (#35312). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@21012 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/issues_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb index 3dafcf9f6..21b20759a 100644 --- a/test/integration/issues_test.rb +++ b/test/integration/issues_test.rb @@ -322,4 +322,15 @@ class IssuesTest < Redmine::IntegrationTest assert_response 404 end end + + def test_invalid_operators_should_render_404 + get '/projects/ecookbook/issues', :params => { + 'set_filter' => '1', + 'f' => ['status_id', 'cf_9'], + 'op' => {'status_id' => 'o', 'cf_9' => '=6546546546'}, + 'v' => {'cf_9' => ['2021-05-25']} + } + + assert_response 404 + end end -- cgit v1.2.3