Red Hat Bugzilla – Bug 1265725
The /rest/query/task operation is returning lists with duplicate TaskSummary's
Last modified: 2018-01-30 23:45:27 EST
Description of problem:
Certain queries to the /rest/query/task (synonym for the /rest/task/query operation) return a list of TaskSummary instances that contain duplicate TaskSummary's.
Steps to Reproduce:
1. Do the above REST operation, in particular with criteria that do not involve the user (process instance id, for example) on a task that references other users or groups besides the user doing the REST operation.
2. Examine the results.
Duplicate task summaries.
Unique task summaries per task id.
This test case happens to be in one of our smoke tests.
*** Bug 1265928 has been marked as a duplicate of this bug. ***
Marco, I have noticed this behavior also when querying tasks through SOAP. Can you confirm that it is fixed in both REST and SOAP? I can see that your commit changes some common class that is not directly related to REST interface but I just want to be sure you are aware of the problem being present also in SOAP interface.
I have noticed another strange behavior when getting tasks this way. When I run a process with a single human task with three actors (mary,john,ibek) and I try to get tasks logged in as ibek, I get this task twice in the result. However, when I am logged in as mary, I get it six times.
I cannot verify this unless bug 1272981 is fixed.
The tests that were affected by this bug has passed using both REST and SOAP interface.
Verified on BPMS 6.2.0 ER5