Bug 85358

Summary: Traceback if password of user being created contains non-ASCII characters
Product: [Retired] Red Hat Public Beta Reporter: Miloslav Trmac <mitr>
Component: firstbootAssignee: Brent Fox <bfox>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: phoebe   
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: 2003-02-28 20:15:30 UTC Type: ---
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
Patch fixing both tracebacks none

Description Miloslav Trmac 2003-02-28 15:59:22 UTC
Description of problem:


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

Steps to Reproduce:
Insert non-ascii character to the password boxes when creating new user

Actual results:
(typed by hand, sorry about typos)
Traceback (most recent call last)
File "/usr/share/firstboot/firstbootWindow.py", line 317, in nextClicked
  result = module.apply (self.notebook)
File "/usr/share/firstboot/modules/create_user.py", line 127, in apply
  if not self.isPasswordOK(passwrd, self.passwordEntry)
File "/usr/share/firstboot/modules/create_user.py", line 224, in isPasswordOk
  if i not i in strings.ascii_letters and i not in string.digits and i not in
strings.punctuation and i not in whitespace
NameError: global name "whitespace" not defined

Fixing this leads to another traceback
(same part omitted)
File "/usr/share/firstboot/modules/create_user.py", line 225, in isPasswordOk
  self.showErrorMessage
NameError: global name "tag" not defined

Comment 1 Miloslav Trmac 2003-02-28 16:02:41 UTC
Created attachment 90426 [details]
Patch fixing both tracebacks

(Note: I've not been able to test this patch now, so please double-check.)

Comment 2 Brent Fox 2003-02-28 20:15:30 UTC
I had fixed the first part a few weeks back.  I just committed the second part
to cvs.  Thanks for your report.  Should be fixed in firstboot-1.0.5-12.