Bug 970181

Summary: RHQ doesn't work after restart with open GUI in web browser.
Product: [Other] RHQ Project Reporter: Yury Sukhov <ysukhov>
Component: Core UIAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: 4.6CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.10   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-23 12:31:00 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:
Attachments:
Description Flags
exceptions none

Description Yury Sukhov 2013-06-03 15:44:36 UTC
Description of problem:
RHQ doesn't work after restart with open GUI in web browser.

Steps to Reproduce:
1. Open WEB GUI (Example Event View for platform)
2. Restart RHQ server 
3. Go back to WEB GUI and update views (Example Event View for platform), while RHQ server is starting

Actual results:
Exceptions in WEB GUI and server log. WEB GUI doesn't work (we cann't open Inventory\All Resources, Inventory\Platforms and others).


Expected results:
View updated successfully, no exception in server log and WEB GUI.

Additional info:
Exeptions atached in exceptions.txt

Comment 1 Yury Sukhov 2013-06-03 15:47:30 UTC
Created attachment 756369 [details]
exceptions

exceptions occured, while server was starting

Comment 2 Heiko W. Rupp 2013-06-18 15:00:10 UTC
Yury,
did you try to refresh the full web-page (Shift-F5) that hosts the RHQ UI?
If so, did that work for you?

GWT is using sort of a session to talk to the backend and when the server is
restarted and the old session is invalid. RHQ now depends on that session for its security model.

We will try to better detect a restart of the server and provide a more helpful message.

Comment 3 Jirka Kremser 2013-12-16 18:25:36 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=50aed986a
time:    2013-12-16 19:23:37 +0100
commit:  50aed986a19b2e1cbd7d13e179c0342857d22854
author:  Jirka Kremser - jkremser
message: [BZ 970181] - RHQ doesn't work after restart with open GUI in web
         browser. - if the server restarts at the background, the
         session id is lost on the server therefore we can't allow the
         logged user to continue sending the requests without a new
         AuthN. It would be a security risk to allow it. Now, if the
         server restarts the UI requires the new log in (the login form
         is displayed).

Comment 4 Heiko W. Rupp 2014-04-23 12:31:00 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.