Bug 97734 - User Account module crashed if username has whitespace in it
Summary: User Account module crashed if username has whitespace in it
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: firstboot
Version: 9
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brent Fox
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-06-19 21:18 UTC by Louis Bertrand
Modified: 2007-04-18 16:54 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-07-01 19:53:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Louis Bertrand 2003-06-19 21:18:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2)
Gecko/20030208 Netscape/7.02

Description of problem:
Python TypeError
modules/create_user.py in isUsernameOk
self.showErrorMessage(_("The user name '%s' contains whitespace. "
TypeError: not enough arguments for format string

I was trying combinations of bad user input and this is the only problem I
noticed so far.


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


How reproducible:
Always

Steps to Reproduce:
1. run firstboot from the command line /usr/sbin/firstboot
2. at the user setup, enter a user name with whitespace in it
3. click forward and you'll see the error modal box
    

Actual Results:  Modal error box comes up:
modules/create_user.py in isUsernameOk
self.showErrorMessage(_("The user name '%s' contains whitespace. "
TypeError: not enough arguments for format string



Expected Results:  error message box saying you can't have whitespace in a user name

Additional info:

I'm not sure what the problem is, but when I did a copy and paste from the code
to produce the error message below the check for whitespace (checking for
punctuation in the user name), the problem was fixed. I don't understand what
you're doing with these multiline strings (me, I'd use the triple-quoted
strings), maybe it's an indentation thing too.

Comment 1 Brent Fox 2003-07-01 19:53:02 UTC
I committed a fix for this to cvs on May 30.  This should be fixed in
firstboot-1.0.11-1 and later in Rawhide.


Note You need to log in before you can comment on or make changes to this bug.