Bug 956130 - User with "Create workspaces" permission can't see the workspaces he created.
Summary: User with "Create workspaces" permission can't see the workspaces he created.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: BAM
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: DR4
: 6.0.0
Assignee: David Gutierrez
QA Contact: Jan Hrcek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-24 10:29 UTC by Jan Hrcek
Modified: 2014-08-06 20:10 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:10:00 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)

Description Jan Hrcek 2013-04-24 10:29:13 UTC
Description of problem:
User with "Create workspaces" permission can't see/use/edit the workspaces he created. Because when the workspace is created it has initially no permissions assigned (it is visible only to root user, who bypases all the application level permission checking).

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

How reproducible:
Always.

Steps to Reproduce:
1. Login with root and assign "Create workspaces" permission to Administrator role.
	-In the black management bar at the top click "General congifuration"
	-Expand section "General permissions"
	-In "Permission assignation" table set "Create workspace" permission for Administrator role to Yes, the other permissions 3 to No, click Save
2. Logout root and log back in with some user with Administrator role (e.g. admin)
3. In the black management bar at the top click picture with label "Create workspace", that takes you to page with "Workspaces" panel.
4. Fill in name and title (e.g. MyNewWorkspace for both) and click "Create workspace" button.



Actual results:
The message "The workspace has been successfully created" appears. However, the newly created workspace is not visible to the admin user, so he can't do anything to configure the newly created workspace!

- With admin user, the newly created workspace is nowhere to be seen (in "Workspaces" tree in General configuration, nor on the home page of the dashboard-builder in the "Workspaces" select)
- When you login with root user, the workspace "MyNewWorkspace" created by admin user is visible and working.

The problem is in the initial privileges assigned to workspace - go to "General configuration" page > Workspaces > MyNewWorkspace > Permission you can see, that workspace is created with no permissions assigned to any role.



Expected results:
The workspace should be visible at least to the user, who has permission to create it. The initial privileges of a newly created workspace should be set at least to "Access" and "Administrate" granted to the role, that created it.
Otherwise what is the use of "Create workspaces" privilege, when the workspaces cannot be worked with (except for root user, who is not restricted by any permissions)?


Additional info:

Comment 1 David Gutierrez 2013-05-07 10:57:35 UTC
Fixed as suggested.

Now the application assigns some default workspace permissions to the creator role so that, just after creating the workspace, the creator user can get access to it.

Github commit: https://github.com/droolsjbpm/dashboard-builder/commit/da149ca0e6ffaabc54c9e7ef119ed6ed624bb4c2

Comment 2 Jan Hrcek 2013-06-11 11:01:09 UTC
QA: Ok, now it works. Now when user with "Create workspaces" creates a workspace, the workspace is visible to him, as it should be. Verified with dashbuilder DR5 deployed on EAP 6.1.


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