Bug 1198472

Summary: Configurable Workbench: Issues with onClose event in SplashScreen plugin
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: Business CentralAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED EOL QA Contact: Tomas David <tdavid>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0CC: kverlaen, rrajasek
Target Milestone: DR1   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:11:06 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:

Description Tomas David 2015-03-04 08:53:19 UTC
Description of problem:
OnClose event starts several times after close SplashScreen. The event also starts when it is switched to other perspective.

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

How reproducible:

Steps to Reproduce:
1. Create SplashScreen plugin. (Extensions -> Plugin Management -> New... -> New SplashScreen). Add some alert to onClose event. For example:

function() {

2. Refresh browser.
3. Open perspective where new SplashScreen plugin should be placed.
4. Close SplashScreen. "Closing" alert is displayed.
5. Navigate to other perspective. *)
6. Open perspective where new SplashScreen plugin should be placed.
7. Close SplashScreen. **)

Actual results:
*) "Closing" alert is displayed again.
**) "Closing" alert is displayed twice.

Expected results:
*) "Closing" alert is not displayed.
**) "Closing" alert is displayed once.

Additional info:
If you repeat procedure: switch to other perspective, return back and close splashscreen, alert is displayed increasingly.

Comment 1 Alexandre Porcelli 2015-03-05 21:21:22 UTC
Fixed on future UF master:

(to be master soon) https://github.com/uberfire/uberfire/commit/09a9bee38d25553c0b646353b3dd6faba902e248

Comment 2 Tomas David 2015-08-10 13:42:54 UTC
I cannot verify thit BZ because I cannot see created splascreen.

I create splascreen plugin, refresh browser and open perspective where splashscreen should be displayed but no splashscreen is there.

I also try to create static plugin (in business-central.war/plugins) and it works well.