Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1361656

Summary: UI plugin API: loginUserName and loginUserId functions return null before WebAdmin UI is fully initialized
Product: [oVirt] ovirt-engine Reporter: Vojtech Szocs <vszocs>
Component: Frontend.WebAdminAssignee: Vojtech Szocs <vszocs>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: futureCC: bugs, mgoldboi, oourfali, sbonazzo
Target Milestone: ovirt-4.0.4Flags: rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
oourfali: devel_ack+
pstehlik: testing_ack+
Target Release: 4.0.4   
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-09-26 12:34:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vojtech Szocs 2016-07-29 16:17:51 UTC
This bug was discovered while testing a fix for BZ 1361255 [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1361255#c3

loginUserName and loginUserId functions should return correct values even before WebAdmin UI is fully initialized (information about logged-in user is available right from the start as we're using SSO).

Steps to Reproduce:
1. Use test UI plugin from [2].
2. Load WebAdmin page and inspect browser console.

[2] https://bugzilla.redhat.com/show_bug.cgi?id=1361255#c2

Actual results:

null
null
<actual-sso-token>
<base-engine-path>
<webadmin-locale>

Expected results:

<user-at-domain>
<user-id>
<actual-sso-token>
<base-engine-path>
<webadmin-locale>

Comment 1 Vojtech Szocs 2016-08-09 15:52:17 UTC
4.0 patch posted and verified, BZ is in POST.

Please ensure proper flags for inclusion in 4.0.z release.

Comment 2 Petr Matyáš 2016-09-06 15:48:20 UTC
Verified on 4.0.4-1