Bug 85358 - Traceback if password of user being created contains non-ASCII characters
Summary: Traceback if password of user being created contains non-ASCII characters
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: firstboot
Version: phoebe
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Brent Fox
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-02-28 15:59 UTC by Miloslav Trmac
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-02-28 20:15:30 UTC


Attachments (Terms of Use)
Patch fixing both tracebacks (801 bytes, patch)
2003-02-28 16:02 UTC, Miloslav Trmac
no flags Details | Diff

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.


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