Bug 1026249 - User roles named incorrectly when deployed on EWS 2 (tomcat 7)
Summary: User roles named incorrectly when deployed on EWS 2 (tomcat 7)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: BAM
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ER6
: 6.0.0
Assignee: Ryan Zhang
QA Contact: Jan Hrcek
URL:
Whiteboard:
: 1026345 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-04 09:31 UTC by Jan Hrcek
Modified: 2014-08-06 20:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:12:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Hrcek 2013-11-04 09:31:47 UTC
Description of problem:
When dashbuilder is deployed on EWS 2 (tomcat 7), the role names in select are: Administrator, End User, Anonymous. But they should be (as they are when dashbuilder is deployed on EAP 6.1): Administrator, Analyst, Anonymous

Version-Release number of selected component (if applicable):
BPMS 6.0.0 ER4 deployed on EWS 2 (tomcat 7).

How reproducible:
Always

Steps to Reproduce:
1. When dashbuilder deployed on tomcat, navigate to General options > General permissions (or to any other permission management page like Workspace permissions, Page permissins, Panel permissions)

Actual results:
In Permission assignation section, in the select for choosing role there is 'End User' -> should be 'Analyst'

Expected results:
The roles in select should be named the same both on EAP 6.1 and on EWS containers.

Additional info:
Please also take into consideration existing bug, that manifested itself when deployed on EAP6 (https://bugzilla.redhat.com/show_bug.cgi?id=1019317)

Comment 1 David Gutierrez 2013-11-05 11:53:51 UTC
The dashbuilder generic repo is located at https://github.com/droolsjbpm/dashboard-builder. The generic dashbuilder artifacts are generated from there. Generic dashbuilder uses "Administrator" and "End User" as default roles and it contains only the Showcase workspace. 

On the other hand, we have the dashbuilder distribution for jBPM. The repo is located at https://github.com/droolsjbpm/jbpm-dashboard. This is the repo that must be used to generate the artifacts for the BPMS distribution.  

The ER4 distribution for EAP 6.1 http://dev138.mw.lab.eng.bos.redhat.com/candidate/bpms-6.0.0-ER4/jboss-bpms-6.0.0-redhat-4-deployable-eap6.x.zip
 it's OK as it contains the dashbuilder distribution for jBPM:

* The roles are well defined. "Administrator" and "Analyst" (see jboss-eap-6.1/standalone/deployments/dashbuilder.war/WEB-INF/web.xml)

* It also contains the jBPM dashboard stuff (existing files jboss-eap-6.1/standalone/deployments/dashbuilder.war/WEB-INF/etc/appdata/initialData/jbpm*.xml)


The ER4's Tomcat 7 distribution 
http://dev138.mw.lab.eng.bos.redhat.com/candidate/bpms-6.0.0-ER4/jboss-bpms-6.0.0-redhat-4-deployable-generic.zip IS NOT OK. I've looked into the contents of that file and it NOT contains the dashbuilder distribution for jBPM. It contains the generic one.

* It contains the roles of the generic distribution "Admnistrator" and "End user" (see /dashbuilder.war/WEB-INF/web.xml)

* The jBPM dashboard files are missing /dashbuilder.war/WEB-INF/etc/appdata/initialData/jbpm*.xml


I think ER4 distribution for tomcat should be reviewed to ensure the dashbuilder for jBPM artifacts are included instead of the dashbuilder generic ones.

Comment 2 David Gutierrez 2013-11-05 11:56:49 UTC
*** Bug 1026345 has been marked as a duplicate of this bug. ***

Comment 3 Jan Hrcek 2013-11-28 08:33:09 UTC
The problem is still present in ER5 (only EWS binaries are concerned - binaries for EAP are ok in this regard) - the jBPM Dashboard workspace is not present and the roles are named as described in problem Description.

Comment 4 Pedro Zapata 2013-11-28 09:10:10 UTC
Can you confirm the binaries for EWS are using the right dashbuilder war. There should be no difference, unless the dashbuilder.war is being packaged instead of jbpm-dashbuilder.war. 

There's also the requirement for it to be named dashbuilder.war to provide the context /dashbuilder

DAvid, can you verify this?

Comment 5 David Gutierrez 2013-11-28 10:05:26 UTC
I've downloaded the ER5 from here:

 http://dev138.mw.lab.eng.bos.redhat.com/candidate/bpms-6.0.0-ER5/jboss-bpms-6.0.0-redhat-5-deployable-generic.zip

... and the same issues encountered in ER4 remain:

* It contains the roles of the generic distribution "Admnistrator" and "End user" (see /dashbuilder.war/WEB-INF/web.xml)

* The jBPM dashboard files are missing /dashbuilder.war/WEB-INF/etc/appdata/initialData/jbpm*.xml

ER5 distribution for tomcat should be reviewed to ensure the dashbuilder for jBPM artifacts are included instead of the dashbuilder generic ones.

Comment 6 Ryan Zhang 2013-11-28 23:39:29 UTC
Yes, this is a bug in BPMS assembly code.

Could we target this for ER6?

Comment 8 Jan Hrcek 2014-01-02 13:54:20 UTC
Ok, verified with BPMS ER6 - currently there are 6 roles available for permission configuration in dashbuilder: 5 business-central ones (admin, analyst, developer, manager, user) + anonymous

Comment 9 Ryan Zhang 2014-01-07 11:02:31 UTC
*** Bug 1040143 has been marked as a duplicate of this bug. ***


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