Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1265725

Summary: The /rest/query/task operation is returning lists with duplicate TaskSummary's
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marco Rietveld <mrietvel>
Component: Business CentralAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: medium    
Version: 6.2.0CC: smcgowan
Target Milestone: ER5   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:44:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1272981    
Bug Blocks:    

Description Marco Rietveld 2015-09-23 14:41:03 UTC
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:

Comment 1 Marco Rietveld 2015-09-23 14:41:35 UTC
This test case happens to be in one of our smoke tests.

Comment 3 Tomas Livora 2015-09-25 07:24:23 UTC
*** Bug 1265928 has been marked as a duplicate of this bug. ***

Comment 4 Tomas Livora 2015-09-25 07:28:59 UTC
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.

Comment 5 Tomas Livora 2015-10-01 07:17:56 UTC
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.

Comment 6 Tomas Livora 2015-10-19 11:50:21 UTC
I cannot verify this unless bug 1272981 is fixed.

Comment 7 Tomas Livora 2015-11-04 13:32:26 UTC
The tests that were affected by this bug has passed using both REST and SOAP interface.

Verified on BPMS 6.2.0 ER5