Bug 1320030 - Default Tasks List filters doesn't keep up with user's roles changes
Summary: Default Tasks List filters doesn't keep up with user's roles changes
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ER3
: 6.3.0
Assignee: Neus Miras
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1320357
TreeView+ depends on / blocked
 
Reported: 2016-03-22 07:41 UTC by Toshiya Kobayashi
Modified: 2020-03-27 19:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1320357 (view as bug list)
Environment:
Last Closed: 2020-03-27 19:44:30 UTC
Type: Bug


Attachments (Terms of Use)
reproducer-repo.zip (75.79 KB, application/zip)
2016-03-22 07:41 UTC, Toshiya Kobayashi
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.