Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 118017 - system-config-samba fails to open edit users dialog, delete user option effected
Summary: system-config-samba fails to open edit users dialog, delete user option effected
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-samba
Version: rawhide
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Brent Fox
QA Contact:
URL: http://www.andrewfarris.com/fedora/st...
Whiteboard:
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-03-11 05:06 UTC by Andrew Farris
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-03-11 15:26:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew Farris 2004-03-11 05:06:46 UTC
Description of problem:
While system-config-samba displays the "Samba Users" dialog, clicking 
the "Edit Users" results in the Traceback below without opening the 
expected dialog.
----------------
Traceback (most recent call last):
  File "/usr/share/system-config-samba/sambaUserWin.py", line 144, in 
onEditUserButtonClicked
    user_dict = self.samba_user_data.getUserDict()
  File "/usr/share/system-config-samba/sambaUserData.py", line 86, in 
getUserDict
    if tmp_line[0] != '#':
IndexError: string index out of range
----------------

The "Delete User" button displays this similar Traceback, but appears 
to correctly remove the user from the dialog listbox.
----------------
Traceback (most recent call last):
  File "/usr/share/system-config-samba/sambaUserWin.py", line 164, in 
onDeleteUserButtonClicked
    self.samba_user_data.deleteUser(name, line)
  File "/usr/share/system-config-samba/sambaUserData.py", line 178, 
in deleteUser
    user_dict = self.getUserDict()
  File "/usr/share/system-config-samba/sambaUserData.py", line 86, in 
getUserDict
    if tmp_line[0] != '#':
IndexError: string index out of range
----------------

Version-Release number of selected component (if applicable):
system-config-samba-1.2.5-1

Related:
python-2.3.3-2.1
pygtk2-2.0.0-5.1
libuser-0.51.7-7.1.1
htmlview-2.0.0-12
samba-3.0.2a-1.1
usermode-1.69-5

How reproducible:
always

Steps to Reproduce:
1. Run system-config-samba as root
2. Select menu "Preferences", option "Samba Users"
3. Select a local logon user
4. Click the "Edit User" button
  
Actual results:
Edit Users dialog fails to display, Traceback displayed

Expected results:
Edit Users dialog box displayed

Additional info:
Last rawhide update 03/10/04 14:29:14 PST
Samba users have been previously configured with both the command 
line tools and SWAT

Comment 1 Brent Fox 2004-03-11 15:26:47 UTC
This bug was caused due to blank lines in the smbusers file which was
not expected.  Should be fixed in system-config-samba-1.2.6-1 in
Rawhide.  Thanks for your report.


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