Bug 251076
Summary: | Application locks up | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | ray hammond <ray.hammond77> |
Component: | system-config-users | Assignee: | Nils Philippsen <nphilipp> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7 | CC: | mitr |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 1.2.64-1.fc7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-09-18 03:20:32 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
ray hammond
2007-08-06 22:08:51 UTC
Mirek, I get this on the console (with the current Hg upstream code): /home/nils/devel/hg/hosted/system-config-users/src/mainWindow.py:394: RuntimeWarning: tp_compare didn't return -1 or -2 for exception groupEnt = self.gid_dict[long (gidNumber)] Traceback (most recent call last): File "/home/nils/devel/hg/hosted/system-config-users/src/userWindow.py", line 402, in on_userWin_ok_button_clicked self.parent.refresh_users_and_groups([userName, 'users']) File "/home/nils/devel/hg/hosted/system-config-users/src/mainWindow.py", line 394, in refresh_users_and_groups groupEnt = self.gid_dict[long (gidNumber)] RuntimeError: Error creating `': No such file or directory This looks like a libuser runtime error but I can't imagine why it happens at that point. Would you please take a look at this? I've got libuser-0.56.2-1. You can pull the current repository from hg.fedoraproject.org. The Python traceback has incorrect location information. Without trying this in the debugger, I think this is caused by: if self.homeDirCheck.get_active(): userEnt.set(libuser.HOMEDIRECTORY, [homeDir]) else: userEnt.set(libuser.HOMEDIRECTORY, [""]) ... so userEnt[HOMEDIRECTORY] is "". Later: if self.homeDirCheck.get_active(): #Create a home directory for the user self.parent.ADMIN.addUser(userEnt) else: #Do not create a home directory for the user self.parent.ADMIN.addUser(userEnt) homeDir = "" Note: 1) the addUser call is the same in both cases, attempting to create the directory "", which is an invalid file name in Unix. 2) the homeDir assignment is not used anywhere I think userent[HOMEDIRECTORY] should always be set to homeDir, and the second case of addUser should use mkhomedir = False. I've fixed this in system-config-users-1.2.63 which should updates-testing shortly. Please test this version. Thanks! system-config-users-1.2.64-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. system-config-users-1.2.64-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. |