Bug 523068

Summary: [system-config-users] unable to delete existing user
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: system-config-usersAssignee: Nils Philippsen <nphilipp>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: nphilipp
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-16 14:43:47 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:

Description Joachim Frieben 2009-09-13 21:06:08 UTC
Description of problem:
After a fresh install from the "rawhide" tree, it is possible to add new users via system-config-users. However, an attempt to delete an existing user has no effect. Instead, the following error message is returned:

  /usr/share/system-config-users/mainWindow.py:726: DeprecationWarning:
      use set_markup() instead
    dlg.label.set_use_markup (True)
  Locking '/var/cache/abrt/pyhook-1252875507-2692.lock'...
  UnLocking '/var/cache/abrt/pyhook-1252875507-2692.lock'...
  Traceback (most recent call last):
    File "/usr/share/system-config-users/mainWindow.py", line 756, in
        on_delete_activate
      self.rmrf(homeDir)
    File "/usr/share/system-config-users/mainWindow.py", line 923, in rmrf
      if not path.beginswith ("/"):
  AttributeError: 'str' object has no attribute 'beginswith'

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


How reproducible:
system-config-users-1.2.90-1.fc12.noarch

Steps to Reproduce:
1. Launch /usr/bin/system-config-users
2. Delete existing user and choose to remove home directory etc.
  
Actual results:
None.

Expected results:
User entry gets deleted.

Additional info:
None.

Comment 1 Joachim Frieben 2009-09-13 21:07:25 UTC
Version-Release number of selected component (if applicable):
system-config-users-1.2.90-1.fc12.noarch

How reproducible:
Always.

Comment 2 Nils Philippsen 2009-09-14 09:52:57 UTC
Should be fixed in system-config-users-1.2.91.

Comment 3 Joachim Frieben 2009-09-15 19:45:18 UTC
Issue persists for system-config-users-1.2.91-1.fc12:

 "/usr/share/system-config-users/mainWindow.py:685: DeprecationWarning:
      use set_markup() instead
    dlg.label.set_use_markup (True)
  Locking '/var/cache/abrt/pyhook-1253043631-2063.lock'...
  UnLocking '/var/cache/abrt/pyhook-1253043631-2063.lock'...
  Traceback (most recent call last):
    File "/usr/share/system-config-users/mainWindow.py", line 715, in
        on_delete_activate
      self.rmrf(homeDir)
    File "/usr/share/system-config-users/mainWindow.py", line 890, in rmrf
      shutils.rmtree (path)
  NameError: global name 'shutils' is not defined"

Comment 4 Nils Philippsen 2009-09-16 14:43:47 UTC
Ahh sorry. This typo is fixed in 1.2.93, along with some other problems.