Bug 1235658

Summary: Some perspectives in the Business Central UI fails to open when using the Errai websocket configuration
Product: [Retired] JBoss BPMS Platform 6 Reporter: Spolti <fspolti>
Component: Business CentralAssignee: Max Barkley <mbarkley>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0CC: alazarot, cray, kverlaen, ravindra.tubati
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1235686 (view as bug list) Environment:
Last Closed: 2016-03-08 13:55:21 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1235686    

Description Spolti 2015-06-25 12:54:18 UTC
Description of problem:
There is a need to expire the Http Sessions without to close the Browser.
If we keep the browser opened the session will never expires because the Errai heart beat messages based on Server-Sent Events (SSE).

To be able to expire the session without to close the browser is necessary to configure the ERRAI to use websockets instead.

Using this approach the session get expired and the user is redirect to the login page normally, but some perspectives in the Business central does not work, for example the Authoring perspective.


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

How reproducible:
100%

Steps to Reproduce:
1. Install business central
2. Create the ErraService.properties file under $JBOSS_HOME/standalone/deployments/business-central.war/WEB-INF/classes/
3. Add the following configuration: errai.bus.enable_web_socket_server=true
4. Start the BPMS
5. Open the developer tools and watch the logs.

Actual results:
The session is expired but it is not possible to open, for example, the authoring perspective.

In the developer tools the following messaged is showed:
SEVERE [LogConfiguration] java.lang.IllegalStateException:This service only works from threads that are handling HTTP servlet requests


Expected results:
Everything should work without problems and the session should get expired and the user redirected to the login page without close the browser.

Additional info:

Comment 3 Marco Rietveld 2015-06-26 10:34:39 UTC
Seemed like something for you, Alex? Otherwise, feel free to reassign (Michael?).

Comment 4 Alessandro Lazarotti 2016-03-08 13:55:21 UTC
I just published the KCS https://access.redhat.com/solutions/1494913. Nothing besides that is required for now, so I am closing this ticket