[SERVER-10970] the invalid arguments to addUser message contains terrible UX Created: 30/Sep/13  Updated: 11/Jul/16  Resolved: 05/Nov/13

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 2.5.2
Fix Version/s: 2.5.4

Type: Bug Priority: Major - P3
Reporter: Matt Dannenberg Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

pass an invalid argument to addUser()

Participants:

 Description   

the error reads:
Error: Invalid arguments to addUser. addUser must either be run with a full user object or with a username, password, and roles array

but the fields aren't called username and password
instead they are called user and pwd

so when one tries to run the command again taking into account the feedback from error message they get the following error:
couldn't add user: "username" is not a valid argument to createUser

which must be deeply frustrating
also it's a bit confusing because they called addUser not createUser



 Comments   
Comment by Spencer Brody (Inactive) [ 05/Nov/13 ]

Looks like this message was already removed as part of other work done on 2.5.4.

Generated at Thu Feb 08 03:24:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.