Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4518

db.auth() does not work in Compass shell

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.26.1
    • Affects Version/s: 1.23.0
    • Component/s: Embedded Shell
    • Labels:
      None

      db.auth(username, password) results in:

       
      db.auth('root', 'somepasssword')
       [MongoParseError:|#] URI malformed, cannot be parsed
      at parseConnectionString (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:269831:21) at connect (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:139038:3) at /home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:62583:5 at maybePromise (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:772:3) at MongoClient.connect (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:62579:10) at Function.MongoClient.connect (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:62802:22) at CompassServiceProvider._callee18$ (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:131963:46) at tryCatch (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:142634:40) at Generator.invoke [as _invoke] (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:142864:22) at Generator.next (/home/addaleax/src/compass/node_modules/@mongodb-js/compass-shell/lib/index.js:142689:21)

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: