Bug 190487 - Kickstart fails to run if root password not selected as encrypted
Summary: Kickstart fails to run if root password not selected as encrypted
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-kickstart
Version: 5
Hardware: All
OS: Linux
medium
urgent
Target Milestone: ---
Assignee: Chris Lumens
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-02 20:42 UTC by Philip Prindeville
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-05-05 19:26:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Proposed fix. (435 bytes, patch)
2006-05-02 20:42 UTC, Philip Prindeville
no flags Details | Diff

Description Philip Prindeville 2006-05-02 20:42:37 UTC
Description of problem:

When one unchecks the "Encrypt root password" box, the "Save" and "Preview" File
menu options become unresponsive.

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

2.6.6.4

How reproducible:

This only happens when the password isn't to be saved encrypted.

Steps to Reproduce:
1. Enter config, including root password.
2. Uncheck "encrypt root password".
3. Attempt to Save or Preview the config.
  
Actual results:

No pop-up with the config and/or no config saved.

On the controlling terminal, however, one sees:

Traceback (most recent call last):
 File "/usr/share/system-config-kickstart/kickstartGui.py", line 293, in
on_activate_preview_options
   if self.getAllData() != None:
 File "/usr/share/system-config-kickstart/kickstartGui.py", line 237, in getAllData
   if self.basic_class.formToKsdata(doInstall) is None:
 File "/usr/share/system-config-kickstart/basic.py", line 202, in formToKsdata
   self.ksdata.rootpw["password"] = pure
UnboundLocalError: local variable 'pure' referenced before assignment 


Expected results:

Pop-up dialog with config or file chooser asking where to save config.

Additional info:

See proposed fix.

Comment 1 Philip Prindeville 2006-05-02 20:42:37 UTC
Created attachment 128518 [details]
Proposed fix.

Comment 2 Chris Lumens 2006-05-03 13:40:26 UTC
Thanks for the patch.  Will be fixed in 2.6.10-1.


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