-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
None
Environment (Required on creation):
Tested on 7.16.0-alpha1
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
The engine throws an exception when a user creates a filter through Tasklist containing "candidateUser" and "candidateGroup" in an Or query.
Steps to reproduce (Required on creation):
- Open Tasklist
- Click "create filter"
- add criteria "candidateUser" and "candidateGroup" and select match ANY
- Click "save"
Observed Behavior (Required on creation):
Tasklist shows an error message but no filters making it impossible to interact with other filters.
The engine log shows an exception message containing: {{ Invalid query usage: cannot set both candidateGroup and candidateUser}}.
Expected behavior (Required on creation):
Root Cause (Required on prioritization):
The filter is saved correctly as both criteria are allowed together in or queries.
When loading the filter list again the JsonTaskQueryConverter converts the OR query JSON String to a TaskQueryImpl object without setting the isOrQueryActive flag. This causes the check to fail.
Solution Ideas (Optional):
isOrQueryActive should be true when creating the Or Query from the JSON string