Bug 409799 - Adding user without providing account name fails silently
Summary: Adding user without providing account name fails silently
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (other bugs)
Version First Reported In: 5.16.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 416787 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-07-14 20:18 UTC by Nicolas Girard
Modified: 2020-05-21 23:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.20
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Girard 2019-07-14 20:18:21 UTC
SUMMARY

On Kubuntu 19.04, using user-manager 5.16.3-0ubuntu1~ubuntu19.04~ppa1 package from http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu, trying to add a new user via KDE configuration manager without providing an account name fails silently.

STEPS TO REPRODUCE
1. LANG=C kcmshell5 user_manager
2. Click "New user"
3. Leave the first (anonymous btw) field empty
4. Fill in "Real name" field with e.g. "tester"
5. Provide a password
6. Click OK
7. Enter password

OBSERVED RESULT

The window closes without any warning or error message.

Return code ($?) is 0.

No user is created (grep tester /etc/group returns nothing)


EXPECTED RESULT

At some point in the described sequence, the user should be warned that an account name is missing, the more so as the field for the account name is anonymous and doesn't have any tooltip asssociated.

The return code shouldn't be 0.
Comment 1 Nate Graham 2020-01-28 19:09:54 UTC
*** Bug 416787 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2020-05-21 23:20:20 UTC
This is fixed in the Plasma 5.20 rewrite.