Specifying default database in URI triggers auth failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.0
    • Affects Version/s: 4.1.11
    • Component/s: mongo-tools-common
    • None

      Providing a database name in the URI triggers authentication, which will generally fail because either auth is not enabled on the mongod or the username and password were not provided:

      $ ./bin/mongodump --uri="mongodb://localhost:27017/test"
      2019-05-15T14:06:25.607-0400    Failed: error creating intents to dump: error getting collections for database `test`: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed. 

      This is now prohibited by the auth spec (see DRIVERS-637). We need to revendor the Go driver when GODRIVER-1021 is fixed.

              Assignee:
              David Golden
              Reporter:
              David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: