Bug 1376003

Summary: Internal server error once automatically logged out from rhv-m and then trying to re-login back to the session
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.InfraAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, mburman, mperina
Target Milestone: ovirt-4.0.5Flags: rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
mperina: devel_ack+
pstehlik: testing_ack+
Target Release: 4.0.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 07:36:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine log
none
screenshot
none
logs in debug mode none

Description Michael Burman 2016-09-14 12:39:10 UTC
Description of problem:
Internal server error once automatically logged out from rhv-m and then trying to re-login back to the session.

In rhv-m 4.0 once you automatically logged out by the system and then you trying to log in back again to the session(by entering name and password), first an 'internal server error' appears and you need click on 'Click here to continue'. Then you will see the 'Welcome to Red Hat Virtualization' page and will need to click on the 'Administration Portal' and only then i be back on the session.  

Version-Release number of selected component (if applicable):
4.0.4.2-0.1.el7ev

How reproducible:
Always -100

Steps to Reproduce:
1. Log in to webadmin portal rhv-m 4.0.4 and wait until you automatically logged out by the system
2. Enter username and password to log in back to the session

Actual results:
'Internal Server Error' page appears

Expected results:
No errors should appear when trying to log in back to the session

Comment 1 Michael Burman 2016-09-14 12:41:16 UTC
Created attachment 1200820 [details]
engine log

Comment 2 Michael Burman 2016-09-14 12:42:02 UTC
Created attachment 1200821 [details]
screenshot

Comment 3 Martin Perina 2016-09-14 14:49:29 UTC
Michael, could you please provide also server.log? And is it reproducable?

Comment 4 Michael Burman 2016-09-14 15:06:06 UTC
There is nothing relevant in the server.log
Yes it is, most of qe complaining about this issue for some time now

Comment 5 Michael Burman 2016-09-20 10:23:50 UTC
Hi Ravi, 

Attaching log in debug mode as agreed. Ping me on irc if you need more info.

2016-09-20 13:21:20,657 DEBUG [org.ovirt.engine.core.aaa.servlet.SsoPostLoginServlet] (default task-2) [] User login failure: java.lang.NullPointerException
        at io.undertow.servlet.spec.HttpServletResponseImpl.sendRedirect(HttpServletResponseImpl.java:186) [undertow-servlet.jar:1.3.24.Final-redhat-1]

Comment 6 Michael Burman 2016-09-20 10:26:52 UTC
Created attachment 1202816 [details]
logs in debug mode

Comment 7 Pavel Novotny 2016-10-04 14:27:44 UTC
Verified in rhevm-4.0.5-0.1.el7ev.noarch

Verification steps:
1. Log into webadmin and wait to be automatically logged out. 
2. Back on the login page, enter the credentials again and submit.

Result: User is logged into webadmin. No errors are thrown in the web UI nor are present in server.log/engine.log/ui.log.