Bug 1327670

Summary: WebUI - invalid user name string propagates to the main menu
Product: Red Hat Satellite Reporter: Roman Plevka <rplevka>
Component: WebUIAssignee: Shlomi Zadok <szadok>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/14691
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:37:40 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
username glitch
none
edit_user-fix none

Description Roman Plevka 2016-04-15 15:23:01 UTC
Description of problem:
While updating own name/surname, the new string gets displayed in the main menu even when it's invalid (e.g. too long) (see screenshot).
This is not permanent as the form can't be successfully submitted and disappears as soon as user get the name right or cancels the form. 

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

How reproducible:
always

Steps to Reproduce:
1. navigate to My Profile > Edit User
2. update first name/surname to some invalid string
3. hit submit

Actual results:
the name updates in the main menu even if it's not valid

Expected results:
no change is done until form successfully submits the valid data

Additional info:

Comment 1 Roman Plevka 2016-04-15 15:24:07 UTC
Created attachment 1147689 [details]
username glitch

Comment 3 Brad Buckingham 2016-04-18 17:24:52 UTC
Created redmine issue http://projects.theforeman.org/issues/14691 from this bug

Comment 4 Bryan Kearney 2016-04-18 18:02:09 UTC
Upstream bug component is Provisioning

Comment 5 Bryan Kearney 2016-04-19 08:02:23 UTC
Upstream bug component is WebUI

Comment 6 Bryan Kearney 2016-04-19 10:02:05 UTC
Upstream bug assigned to szadok

Comment 7 Bryan Kearney 2016-04-19 16:02:22 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14691 has been closed
-------------
Shlomi Zadok
Applied in changeset commit:2f0bcd5a05b531b28700f638b902bb2c801013c3.

Comment 8 Roman Plevka 2016-05-13 11:38:28 UTC
VERIFIED

on sat6.2.0 Beta (GA11.0)

the username does not change until the details are successfully saved

Comment 9 Roman Plevka 2016-05-13 11:39:04 UTC
Created attachment 1157086 [details]
edit_user-fix

Comment 10 Bryan Kearney 2016-07-27 11:37:40 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.

https://access.redhat.com/errata/RHBA-2016:1501