Bug 1329467

Summary: Suggested username is inconsistent between Anaconda and "Add User" processes
Product: [Fedora] Fedora Reporter: Sam Bristow <sam.bristow>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-29 17:26:03 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:
Attachments:
Description Flags
Anaconda user-creation (scenario 1)
none
Gnome first-run user-creation (scenario 2)
none
gnome-control-center user-creation screen (screnario 3) none

Description Sam Bristow 2016-04-22 02:50:26 UTC
Created attachment 1149633 [details]
Anaconda user-creation (scenario 1)

Description of problem:
If the user creates a user during the Anaconda installation the suggested username is of the form: {first_initial}{surname}. If the user instead decides to create a new user during first-run process, or through "Add/Remove users" in the gnome-control-center the suggested username is of the form: {first_name}{surname}

Version-Release number of selected component (if applicable):
anaconda 23.19.10-1
gnome-control-center 3.18.2


How reproducible:
100%

Steps to Reproduce:
# Scenario 1 (screenshot 1)
1. Download and run Fedora 23 installer
2. Create a user by typing "Joe Bloggs" as their full name -> suggested username is "jbloggs"

Scenario 2 (screenshot 2)
1. Download and run Fedora 23 installer
2. *Don't* create a user during the Anaconda steps
3. Restart machine and follow first-start guide
4. Create a user by typing "Joe Bloggs" as their full name -> suggested username is "joebloggs"

Scenario 3 (screenshot 3)
1. Open gnome-control-center
2. Create a user by typing "Joe Bloggs" as their full name -> suggested username is "joebloggs", there is a dropdown menu with 6 alternative suggestions for the Username too

Actual results:
See each of the scenarios

Expected results:
The default suggestion for the different ways of adding a user are consistent.

Additional info:
N/A

Comment 1 Sam Bristow 2016-04-22 02:51:47 UTC
Created attachment 1149634 [details]
Gnome first-run user-creation (scenario 2)

Comment 2 Sam Bristow 2016-04-22 02:53:55 UTC
Created attachment 1149636 [details]
gnome-control-center user-creation screen (screnario 3)

Gnome shell won't let me take a screenshot with the menu open. "jbloggs" is the third option in the dropdown menu though.

Comment 3 David Shea 2016-04-29 17:26:03 UTC
Anaconda and gnome-control-center are different programs that often have different ideas of how to do things. The gnome-control-center username generation algorithm is complicated (so we're not going to copy it) and unavailable as a library (so we can't use it even if we wanted to), and besides, both gnome-control-center and anaconda are generating valid usernames from the full name. So I don't see a problem.