Bug 1658157

Summary: User name is not displayed for non default account
Product: Red Hat Satellite 6 Reporter: Oleksandr Shtaier <oshtaier>
Component: WebUIAssignee: Marek Hulan <mhulan>
WebUI sub component: Foreman QA Contact: Oleksandr Shtaier <oshtaier>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: abalakht, egolov, mhulan, sgraessl
Version: 6.5.0Keywords: Regression, Triaged
Target Milestone: 6.5.0   
Target Release: Unused   
Hardware: All   
OS: All   
Fixed In Version: foreman- Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:39:33 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:
Description Flags
Screenshot with issue
Screenshot for default account none

Description Oleksandr Shtaier 2018-12-11 12:16:10 UTC
Created attachment 1513350 [details]
Screenshot with issue

Description of problem:
You cannot see your account name once you login into application in the right corner of the screen which is actually only one place to know your login name quickly

It is necessary to use any account which is not default. You can use account with any access permissions

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Login to application by non default user

Actual results:
Login name is not displayed

Expected results:
Login name is displayed for any account

Additional info:

Comment 4 Oleksandr Shtaier 2018-12-11 12:19:08 UTC
Created attachment 1513352 [details]
Screenshot for default account

Comment 5 Oleksandr Shtaier 2018-12-11 12:20:09 UTC
Put high severity, because it is impossible to identify yourself in the application

Comment 6 Andrii Balakhtar 2018-12-11 15:06:28 UTC
It's actually possible to see current user by opening user's menu -> My Account, but that's not so handy.

Comment 7 Marek Hulan 2018-12-20 20:28:52 UTC
This is not true. We display users' first and last name there. Default user has first and last name filled as Admin User. If you specify your name as regular user, you see your name there too. I think we previously fell back to login, not sure when or how that changed. Lowering the priority accordingly.

Comment 8 Marek Hulan 2018-12-20 20:50:21 UTC
Created redmine issue https://projects.theforeman.org/issues/25748 from this bug

Comment 9 pm-sat@redhat.com 2018-12-20 23:02:30 UTC
Upstream bug assigned to mhulan@redhat.com

Comment 10 pm-sat@redhat.com 2018-12-20 23:02:31 UTC
Upstream bug assigned to mhulan@redhat.com

Comment 11 Oleksandr Shtaier 2018-12-21 12:04:56 UTC
Okay, then I agree that is not so important issue. Anyway, maybe we need to make to display login in case first name and last name is not specified.
In the end, we just need to know expected behavior, so we can fix our test automation scripts accordingly.

Comment 12 Marek Hulan 2018-12-21 12:39:28 UTC
Yes, I've sent the fix yesterday that restores the original behavior. It displays "$first $last" and in case both are empty, we display login. That I think is expected behavior.

Comment 13 Oleksandr Shtaier 2018-12-27 12:04:22 UTC
Sounds good. Thanks Marek

Comment 14 Bryan Kearney 2019-01-10 19:50:00 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25748 has been resolved.

Comment 18 Oleksandr Shtaier 2019-01-21 14:22:21 UTC
Verified on 6.5 snap 12

Created two different users: one with first and last name, second with login name only.

Both scenario works as intended and corresponding names are displayed (if no first and last name specified then login name will be displayed)

Comment 21 errata-xmlrpc 2019-05-14 12:39:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.