Bug 1320357

Summary: [GSS] (6.2.z) Default Tasks List filters doesn't keep up with user's roles changes
Product: [Retired] JBoss BPMS Platform 6 Reporter: Toshiya Kobayashi <tkobayas>
Component: Business CentralAssignee: Neus Miras <nmirasch>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.2.0CC: kverlaen, lpetrovi, nmirasch, rrajasek
Target Milestone: CR1   
Target Release: 6.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1320030 Environment:
Last Closed: 2020-03-27 20:06:30 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: 1320030    
Bug Blocks: 1327765    

Description Toshiya Kobayashi 2016-03-23 01:15:21 UTC
+++ This bug was initially created as a clone of Bug #1320030 +++

Description of problem:

Once a user opens Tasks List in business-central, Tasks List filters (multigrid-preferences/DataSetTaskListGrid in user's branch in system.git) are initialized with the user's roles. But those filters are not updated when user's roles are changed later on. So from user's point of view, even after adding a valid role to the user, Tasks List doesn't show tasks.

Steps to Reproduce:
1. Start BPMS
2. Log in as bpmsAdmin
3. Go to [Tasks]->[Tasks List] (This initializes the filters)
4. Go to [Authoring]->[Administration]
5. Clone the attached reproducer-repo.zip
6. Confirm that "Task1" in "helloProcess" has 'mygroup' in "Groups" attribute.
7. Build&Deploy
8. Go to [Process Management]->[Process Definitions]. Start "helloProcess". 
9. Go to [Tasks]->[Tasks List]. "Active" tab lists nothing. It's okay.
10. Stop BPMS
11. Add a group 'mygroup' to bpmsAdmin using add-user.sh
12. Start BPMS
13. Go to [Tasks]->[Tasks List].

Actual results:

"Active" tab lists nothing

Expected results:

"Active" tab lists a Task.

Additional info:

After the step 13, pressing "Restore default filters" button re-creates the filters with the current roles. So it can be a workaround. But it's difficult for users to know when they should press it.

Comment 2 Neus Miras 2016-03-29 10:41:39 UTC
This PR pick the fix to 6.3.x branch.

https://github.com/droolsjbpm/jbpm-console-ng/pull/379

Comment 3 Neus Miras 2016-03-30 14:19:21 UTC
The filter for the admin tab has been changed to retrieve the task of user logged roles independently of the owner.

A new PR has been created that include the modifications:
6.3.x
https://github.com/droolsjbpm/jbpm-console-ng/pull/382

Comment 5 Lukáš Petrovický 2016-04-14 07:55:46 UTC
This is meant to 6.2.3.

Comment 6 Jan Hrcek 2016-05-06 06:00:04 UTC
Ok, working fine now. Verified with BPM Suite 6.2.3 patch.