Bug 1007481

Summary: Source of login screen appears in error dialog after server restart
Product: [Retired] JBoss BRMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, mswiders
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:15:23 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:
Attachments:
Description Flags
error screen none

Description Radovan Synek 2013-09-12 14:49:13 UTC
Created attachment 796905 [details]
error screen

When the user is logged in and the server has been restarted in background...

Steps to Reproduce:
1. log into business-central
2. go to Authoring -> Asset repository
3. restart the EAP
4. try to upload any jar

Moreover, the user is unable to work with the application - even to return to the home page. only logout or refreshing whole page in the browser works and gets the user to correct login screen.

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

Actual results:
error dialog appears containing HTML src of login screen

Comment 4 Maciej Swiderski 2013-10-31 18:01:52 UTC
I believe that this is expected behavior that after server restart http session is gone and all data about authenticated users is lost and thus none of the operations work except those that are going via regular servlets where lost session is detected and thus redirected to logon form.
Looks like there is an issue with errai/uberfire to detect session lost/expiration and act accordingly.

Comment 5 Alexandre Porcelli 2013-11-02 01:21:59 UTC
Bug fixed and pushed to Uberfire on master and 0.3.x branches:

https://github.com/droolsjbpm/uberfire/commit/73116682
https://github.com/droolsjbpm/uberfire/commit/4da1f5e7

As Maciej pointed, it's expected that by default user have to login again. This fix detects a problem with server and presents an ErrorPopup. Once user presses OK (only option) the application refresh itself.

Comment 6 Radovan Synek 2013-12-03 13:50:27 UTC
Verified on BRMS-6.0.0.ER5

Comment 7 Radovan Synek 2014-03-18 15:38:21 UTC
qe_test_coverage: UX issue