Red Hat Bugzilla – Bug 1005177
No admin bar available for Business Dashboards
Last modified: 2014-08-06 16:11:49 EDT
Created attachment 794668 [details]
Dashbuilder without admin capabilities
Description of problem:
The "Business Dashboards" link opens up a separated browser window but without the ability to create new dashboards.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Sign in as an admin user.
2. Click on Home>Process&Task dashboards
3. Click on Home>Business Dashboards
A new browser window is opened but without the ability to manage the list of dashboards available. The top administration bar is not displayed.
The top admin bar should be there.
The problem is that the bar is not displayed is coming from embedded mode. It's apparently storing a property in the session, and if you after that you can't see the bar.
The 'Business Dashboard' option also always take you to the latest page. If it's your first login you get the dashboard homes. If you previously enter the 'Process Dashboard' option, then you get the same screen.
This behaviour is not good enough. Embedded mode should only happen when the dashboard is shown inside another page. The link in 'Business dashboard' should lead you to the dashboards home in not embedded mode.
If you login with a new session directly into the /dashbuilder it works well.
Now the embedded mode is only enabled when passing the following parameter in the URL: "embedded=true". Once embedded, all the links generated within the app contains the "embedded=true" (via URL-rewriting). to disable the embedded mode we just have to invoke on a URL without that parameter which it's just the case of the "Business dashboards" link.
Github commit (master): https://github.com/droolsjbpm/dashboard-builder/commit/376ac063bc8457d92b521fe2ec9ee375a89f903d
Github commit (6.0.x): https://github.com/droolsjbpm/dashboard-builder/commit/fe17301a523257e314b423adcf15f6f4be8b3085
One additional change was needed.
Github commit (master): https://github.com/droolsjbpm/jbpm-dashboard/commit/ed8fbe8afe3eb6aa0e34fae6a3bebddd903169ef
Github commit (6.0.x): https://github.com/droolsjbpm/jbpm-dashboard/commit/6fb3bbb20dd7d660f4616fa07d712b326678e2c8
Verified on ER4.