Bug 409799

Summary: Adding user without providing account name fails silently
Product: [Applications] systemsettings Reporter: Nicolas Girard <girard.nicolas>
Component: kcm_usersAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, girard.nicolas, nate
Priority: NOR    
Version First Reported In: 5.16.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.20
Sentry Crash Report:

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.