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 1459642 - Duplicated entries of users and groups in lxqt-admin-user
Summary: Duplicated entries of users and groups in lxqt-admin-user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lxqt-admin
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/lxde/lxqt/issues/1308
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-07 17:05 UTC by Jia Yuan Lo
Modified: 2017-06-20 01:49 UTC (History)
3 users (show)

Fixed In Version: lxqt-admin-0.11.1-5.fc26 lxqt-admin-0.11.1-5.fc24 lxqt-admin-0.11.1-5.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-16 13:18:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot 1 (778.57 KB, image/png)
2017-06-07 17:05 UTC, Jia Yuan Lo
no flags Details
[PATCH] lxqt-admin-user: Check for duplicates from getgrent, getpwent (299.84 KB, patch)
2017-06-09 08:49 UTC, Raphael Groner
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 32370 0 None None None 2017-06-09 08:55:12 UTC
Red Hat Bugzilla 1445705 0 unspecified CLOSED User listed twice on Login screen 2022-05-16 11:32:56 UTC

Internal Links: 1445705

Description Jia Yuan Lo 2017-06-07 17:05:27 UTC
Created attachment 1285856 [details]
Screenshot 1

Description of problem:
Thought to have connections to SDDM
https://bugzilla.redhat.com/show_bug.cgi?id=1445705

But seems UNLIKELY as KDE also hit by that
https://bugzilla.redhat.com/show_bug.cgi?id=1446782

Anyway, please check the attached screenshot, it clearly shows the same users twice. The groups also shown twice if one go verify now.

How reproducible:
Launch lxqt-admin-user from a live image and/or after installation

Additional info:
/etc/groups seems normal (if it is used at all?)

Removing one entry, removes both entries in lxqt-admin-user

Haven't tested out adding.

Comment 1 Raphael Groner 2017-06-07 17:23:51 UTC
It's doubtful to see any relation to sddm or KDE in general.

IMHO the method UserManager::loadUsersAndGroups() is b0rken due to there's no check implemented for duplications:
https://github.com/lxde/lxqt-admin/blob/master/lxqt-admin-user/usermanager.cpp#L55

Do you have any users in several groups? What happens if you create a new user as membor of just one group?

Comment 2 Raphael Groner 2017-06-07 17:30:58 UTC
(In reply to Jia Yuan Lo from comment #0)
> Created attachment 1285856 [details]
> Screenshot 1

Okay, every user is listed twice. That might be because each user found from /etc/passwd by getgrent() gets added a second time [1] to the collected lists of groups and members generated from getgrent(), nevertheless what getgrent() [2] reports.

It seems worth to report this to upstream.
 
[1] https://github.com/lxde/lxqt-admin/blob/master/lxqt-admin-user/usermanager.cpp#L78
[2] https://github.com/lxde/lxqt-admin/blob/master/lxqt-admin-user/usermanager.cpp#L65

Comment 3 Jia Yuan Lo 2017-06-08 06:37:56 UTC
Reported upstream: https://github.com/lxde/lxqt/issues/1308

Comment 4 Raphael Groner 2017-06-08 18:35:28 UTC
Thanks.

Comment 5 Raphael Groner 2017-06-09 08:47:33 UTC
Upstream has a patch, please apply.
https://github.com/lxde/lxqt-admin/pull/47

Comment 6 Raphael Groner 2017-06-09 08:49:11 UTC
Created attachment 1286341 [details]
[PATCH] lxqt-admin-user: Check for duplicates from getgrent, getpwent

Comment 7 Fedora Update System 2017-06-10 18:30:09 UTC
lxqt-admin-0.11.1-5.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c84af76d19

Comment 8 Fedora Update System 2017-06-10 18:30:19 UTC
lxqt-admin-0.11.1-5.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e27250dafa

Comment 9 Fedora Update System 2017-06-10 18:30:24 UTC
lxqt-admin-0.11.1-5.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f20a0e6e4c

Comment 10 Fedora Update System 2017-06-12 04:39:36 UTC
lxqt-admin-0.11.1-5.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f20a0e6e4c

Comment 11 Fedora Update System 2017-06-12 06:32:04 UTC
lxqt-admin-0.11.1-5.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c84af76d19

Comment 12 Fedora Update System 2017-06-12 06:32:28 UTC
lxqt-admin-0.11.1-5.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e27250dafa

Comment 13 Fedora Update System 2017-06-16 13:18:03 UTC
lxqt-admin-0.11.1-5.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2017-06-20 00:47:32 UTC
lxqt-admin-0.11.1-5.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2017-06-20 01:49:31 UTC
lxqt-admin-0.11.1-5.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


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