Bug 965498

Summary: anaconda text mode user create doesn't take capital characters for username
Product: [Fedora] Fedora Reporter: Martin Banas <mbanas>
Component: anacondaAssignee: David Shea <dshea>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 19CC: anaconda-maint-list, awilliam, dshea, g.kaviyarasu, jonathan, mganisin, mkolman, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-20.9-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-30 22:04:52 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:
Bug Depends On:    
Bug Blocks: 920667    
Attachments:
Description Flags
anaconda.log
none
ifcfg.log
none
packaging.log
none
program.log
none
storage.log
none
storage.state
none
syslog none

Description Martin Banas 2013-05-21 10:09:16 UTC
Description of problem:
If user enters "John" instead of "john" as username, anaconda will not accept it

Version-Release number of selected component (if applicable):
Fedora-19-Beta-RC2
anaconda-19.28
How reproducible:


Steps to Reproduce:
1. Start installation in text mode
2. Proceed to user creation
3. Set username to "John"

Actual results:
anaconda doesn't allow capital letters in username

Expected results:
Anaconda should allow same usernames as useradd.

Additional info:
pyanaconda/ui/tui/spokes/user.py:41:        Entry("Username", "name", re.compile("^[a-z0-9_]+$"), lambda self,args: args._create),

Comment 1 Martin Banas 2013-05-21 10:09:40 UTC
Created attachment 750963 [details]
anaconda.log

Comment 2 Martin Banas 2013-05-21 10:09:45 UTC
Created attachment 750964 [details]
ifcfg.log

Comment 3 Martin Banas 2013-05-21 10:09:50 UTC
Created attachment 750965 [details]
packaging.log

Comment 4 Martin Banas 2013-05-21 10:09:55 UTC
Created attachment 750966 [details]
program.log

Comment 5 Martin Banas 2013-05-21 10:10:00 UTC
Created attachment 750967 [details]
storage.log

Comment 6 Martin Banas 2013-05-21 10:10:05 UTC
Created attachment 750968 [details]
storage.state

Comment 7 Martin Banas 2013-05-21 10:10:11 UTC
Created attachment 750969 [details]
syslog

Comment 8 Marian Ganisin 2013-05-21 10:52:55 UTC
useradd accepts capital letters and creates user John.

Comment 9 tolarewa 2013-05-28 13:37:34 UTC
patch pushed

Comment 10 tolarewa 2013-05-29 15:48:47 UTC
*patch posted to anaconda for review

Comment 11 Adam Williamson 2013-05-30 02:33:38 UTC
posted for review = POST not MODIFIED.

Comment 13 David Shea 2013-08-12 13:16:44 UTC
https://lists.fedorahosted.org/pipermail/anaconda-patches/2013-June/004432.html is the patch that was posted, which wasn't pushed. The patch is fine, but I reset the status to NEW because I've been working on the same thing in the GUI and I plan to tweak the check a little bit. For example, the username should also allow dots and non-initial hyphens.