Bug 1235658 - Some perspectives in the Business Central UI fails to open when using the Errai websocket configuration
Summary: Some perspectives in the Business Central UI fails to open when using the Err...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Max Barkley
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1235686
TreeView+ depends on / blocked
 
Reported: 2015-06-25 12:54 UTC by Spolti
Modified: 2016-03-08 13:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
: 1235686 (view as bug list)
Environment:
Last Closed: 2016-03-08 13:55:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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