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. How reproducible: Always 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. Actual results: Duplicate task summaries. Expected results: Unique task summaries per task id. Additional info:
This test case happens to be in one of our smoke tests.
Fixed. Commits: 6.3.x: https://github.com/droolsjbpm/jbpm/commit/dd8533e6?w=1 master: https://github.com/droolsjbpm/jbpm/commit/ce3b4d6d?w=1
*** 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