diff options
author | Go MAEDA <maeda@farend.jp> | 2021-05-28 03:58:01 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-05-28 03:58:01 +0000 |
commit | 66fc9f463dbca69529df106338cafcc46f5fa115 (patch) | |
tree | 888a9a4b8765e62e85bce9a8f244902547607b12 /test | |
parent | 7b2fdc771b6858f646ac16b93266392c0a945531 (diff) | |
download | redmine-66fc9f463dbca69529df106338cafcc46f5fa115.tar.gz redmine-66fc9f463dbca69529df106338cafcc46f5fa115.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/issues_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |