After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336935 - Creating lots of users at once causes many groups to be deleted
Creating lots of users at once causes many groups to be deleted
Status: RESOLVED FIXED
Product: gnome-system-tools
Classification: Deprecated
Component: users-admin
2.14.x
Other All
: Normal critical
: ---
Assigned To: Carlos Garnacho
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2006-04-02 15:43 UTC by Gary Coady
Modified: 2006-05-26 14:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Add extra linefeed characters to XML (2.21 KB, patch)
2006-04-02 15:51 UTC, Gary Coady
none Details | Review

Description Gary Coady 2006-04-02 15:43:07 UTC
Please describe the problem:
If an administrator creates a large number of users at once, before pressing 
OK, then the users will not be added. In addition, groups may be removed from 
the system.

Steps to reproduce:
1. Run users-admin 
2. Click "Add User", add a user.
3. Repeat step 2 fifteen times.
4. Click "OK" on main application window.

Actual results:
The users will not be added. In addition, groups may be deleted. In one case, 
the groups adm, tty, disk, kmem, dialout, fax, voice, cdrom, floppy, tape, 
sudo, audio, dip, operator, src, shadow, utmp, video, sasl, plugdev, staff, 
users, crontab, ssh, slocate, scanner and admin were deleted.

Expected results:
The users should be created, and no groups should be deleted.

Does this happen every time?
The users are not created, but based on bug reports, the groups may not always 
be removed.

Other information:
This is based on Ubuntu bug #31675 - 
https://launchpad.net/distros/ubuntu/+source/gnome-system-tools/+bug/31675
Comment 1 Gary Coady 2006-04-02 15:46:45 UTC
When users-admin communicates with the backend, one of the lines in the XML file is over 4095 characters in size. While this line is communicated in full (verified with strace), the debug "in.xml" file in the backend seems to show that the line was truncated to 4095 characters.
Comment 2 Gary Coady 2006-04-02 15:51:40 UTC
Created attachment 62610 [details] [review]
Add extra linefeed characters to XML

Workaround the backend issue by adding extra linefeed characters between user entries.
Comment 3 Carlos Garnacho 2006-05-26 14:01:25 UTC
CVS HEAD has changed IPC, so this bug shouldn't happen again, thanks for the bug report