Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 428301

Summary: [GS Cert] System-config-user hangs when numerical group name is trying to be added. - Regression
Product: Red Hat Enterprise Linux 5 Reporter: Alan Matsuoka <alanm>
Component: system-config-usersAssignee: Nils Philippsen <nphilipp>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1Keywords: Regression
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-02 10:50:58 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:
Bug Depends On:    
Bug Blocks: 246139, 250607, 296411    

Description Alan Matsuoka 2008-01-10 16:49:30 UTC
Description of problem:
Whenever I tried to create user, the application(system-config-users) looks hung
up. (The program will hang or will go into infinitive wait.)


Version-Release number of selected component (if applicable):
system-config-users-1.2.51-3.el5.noarch.rpm

How reproducible:

Whenever I tried to create user, the application(system-config-users) looks hung
up. (The program will hang or will go into infinitive wait.)



  
Actual results:


Expected results:


Additional info:
I don't have enough time to wait.
The GS Certification deadline is almost over.
Hope your rapid reponse.

oll(Traceback (most recent call last):
 File "/usr/share/system-config-users/userWindow.py", line 354, in
on_userWin_ok_button_clicked
   groupEnt.set (libuser.GROUPNAME, groupName)
NameError: global name 'groupName' is not defined

above is last part of strace that syang has captured.

Comment 2 RHEL Program Management 2008-01-17 15:26:08 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 3 Oleg L. Sadov 2008-04-01 15:44:28 UTC
Seems like a coding error -- 'groupName' is not defined variable in
userWindow.py. May be fixed by this patch:

--- system-config-users-1.2.51/src/userWindow.py.orig   2008-04-01
17:59:41.000000000 +0400
+++ system-config-users-1.2.51/src/userWindow.py        2008-04-01
18:02:10.000000000 +0400
@@ -351,7 +351,7 @@
                 #No group currently exists with this name, so we can create one
                 groupEnt = self.parent.ADMIN.initGroup(userName)
                 # workaround bug with purely numerical names in ADMIN.initGroup ()
-                groupEnt.set (libuser.GROUPNAME, groupName)
+                groupEnt.set (libuser.GROUPNAME, userName)
                 groupEnt.set (libuser.GIDNUMBER, gidNumber)
                 cn = groupEnt.get(libuser.GROUPNAME)[0]


Comment 4 Nils Philippsen 2008-04-02 08:50:27 UTC
(In reply to comment #3)
> Seems like a coding error -- 'groupName' is not defined variable in
> userWindow.py.

This is already fixed in the upstream Fedora packages, but we don't have the
proper flags for integrating this in the RHEL-5 packages.

Comment 6 RHEL Program Management 2008-04-02 09:13:25 UTC
This bugzilla has Keywords: Regression.  

Since no regressions are allowed between releases, 
it is also being proposed as a blocker for this release.  

Please resolve ASAP.

Comment 7 Nils Philippsen 2008-04-02 10:50:58 UTC
Ahh, my bad -- this bug has been reported already and fixed in
system-config-users-1.2.51-4.el5. Sorry for the confusion.

*** This bug has been marked as a duplicate of 427504 ***