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

Bug 1320030

Summary: 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
Target Milestone: ER3   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1320357 (view as bug list) Environment:
Last Closed: 2020-03-27 19:44: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:    
Bug Blocks: 1320357    
Attachments:
Description Flags
reproducer-repo.zip none

Description Toshiya Kobayashi 2016-03-22 07:41:59 UTC
Created attachment 1138909 [details]
reproducer-repo.zip

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-24 11:19:06 UTC
Before this commit, the user role restrictions were added in the filter creation moment. This commits remove them of be stored and add them every time the query is launched
The restriction about the user roles are added dynamically in every query now in the following commits 

Master
https://github.com/droolsjbpm/jbpm-console-ng/commit/94cb36da7e4cca5dc93b2acc6e80fe023e8a9175

6.4.x
https://github.com/droolsjbpm/jbpm-console-ng/commit/51ef3c6aee99e340f0ff76cd8c6dd7095ae5616f

Comment 3 Neus Miras 2016-03-30 14:16:37 UTC
The filter added for the tab admin has to be different that was implemented in the previous commits and retrieve the tasks accessible for the user logged roles independently of the task owner or if the user is a possible owner. This change has been added in this PRs.

6.4.x	https://github.com/droolsjbpm/jbpm-console-ng/pull/380
master	https://github.com/droolsjbpm/jbpm-console-ng/pull/381

After the merging, I'll change the status of the BZ to modified.

Comment 5 Pavel Kralik 2016-04-18 17:32:20 UTC
BPMS 6.3.0.ER3