Bug 1393525

Summary: [AAA] OAuthException on engine restart
Product: [oVirt] ovirt-engine-extension-aaa-jdbc Reporter: Gonza <grafuls>
Component: CoreAssignee: Martin Perina <mperina>
Status: CLOSED WORKSFORME QA Contact: Ondra Machacek <omachace>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-18 15:52:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
relevant log none

Description Gonza 2016-11-09 18:21:50 UTC
Created attachment 1219036 [details]
relevant log

Description of problem:
AAA throws an exception when engine is restarted:
2016-11-05 23:45:14,886 ERROR [org.ovirt.engine.core.sso.utils.SsoUtils] (default task-24) [] OAuthException server_error: String index out of range: -1
2016-11-05 23:45:14,893 ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default task-23) [] Cannot authenticate using authentication Headers: server_error: String index out of r      ange: -1
2016-11-05 23:47:02,854 ERROR [org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl] (DefaultQuartzScheduler8) [] Failed to invoke scheduled method onTimer: null

Version-Release number of selected component (if applicable):
ovirt-engine-extension-aaa-ldap-1.2.2-1.el7ev.noarch

How reproducible:
Not been able to reproduce, opening bug for investigation.

Steps to Reproduce:
1. Check engine logs on engine restart

Actual results:
OAuthException

Expected results:
no exceptions

Additional info:
relevant log attached

Comment 1 Ondra Machacek 2016-11-09 18:25:34 UTC
The most important is (thus changing product) :

2016-11-05 23:37:17,456 ERROR [org.ovirt.engine.extension.aaa.jdbc.binding.api.AuthnExtension] (default task-6) [] Unexpected Exception invoking: AAA_AUTHN_AUTHENTICATE_CREDENTIALS[d9605c75-6b43-4b00-b32c-06bdfa80244c]

Comment 2 Martin Perina 2016-11-18 15:52:00 UTC
I haven't been able to reproduce this error with latest ovirt-engine 4.0.6 and ovirt-engine-extension-aaa-jdbc 1.1.1. If you are able to see this issue again, please turn on debug log for SSO and AAA and try to reproduce