db.auth() does not work in Compass shell

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.26.1
    • Affects Version/s: 1.23.0
    • Component/s: Embedded Shell
    • None
    • Not Needed
    • 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)

       

        1. Screenshot from 2020-11-25 15-26-45.png
          101 kB
          Anna Henningsen
        2. Screenshot 2021-02-18 at 17.09.58.png
          245 kB
          Sergey Petushkov

              Assignee:
              Unassigned
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: