Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10970

the invalid arguments to addUser message contains terrible UX

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.4
    • 2.5.2
    • Security
    • None
    • ALL
    • Hide

      pass an invalid argument to addUser()

      Show
      pass an invalid argument to addUser()

    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

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            matt.dannenberg Matt Dannenberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: