Bug 1029151

Summary: Task query service does not use usergroupcallback for getTasksByVariousFields
Product: [Retired] JBoss BPMS Platform 6 Reporter: Maciej Swiderski <mswiders>
Component: jBPM CoreAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Ivo Bek <ibek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, mbaluch, rrajasek
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:10:20 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:

Description Maciej Swiderski 2013-11-11 19:10:40 UTC
Description of problem:
task query service method: getTasksByVariousFields does not make use of UserGroupCallback causing query not returning tasks that are assigned on group level.

Version-Release number of selected component (if applicable):


How reproducible:
Use HR example from jbpm-playground and then use REST api to start and get list of tasks with following url:
http://localhost:8080/kie-wb/rest/runtime/org.jbpm:HR:1.0/process/hiring/start
http://localhost:8080/kie-wb/rest/task/query?potentialOwner=katy

Steps to Reproduce:
1.
2.
3.

Actual results:
task list is empty

Expected results:
task list should contain task that are assigned to HR group where katy is member of that group

Additional info:

Comment 1 Maciej Swiderski 2013-11-11 19:13:30 UTC
fixed pushed to master and awaiting acks:
https://github.com/droolsjbpm/jbpm/commit/94a6b2e5f03ef567a4c1f3d77dacc46d87f482d7

Comment 3 Maciej Swiderski 2013-11-14 09:16:46 UTC
backported to 6.0.x branch:
https://github.com/droolsjbpm/jbpm/commit/535d2d73bbd80c02852db5d488d0d789f916b0e4

Comment 4 Ivo Bek 2013-12-11 14:44:08 UTC
Verified in BPMS 6.0.0.ER5