Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-5811

Error if URI has username and no password for MONGODB-AWS

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • Needed
    • None
    • Major Change
    • C Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      Error if URI has username and no password for MONGODB-AWS

      Background & Motivation

      Tests for the MONGODB-AWS auth mechanism were added in SPEC-1515 but missed when implementing MONGODB-AWS.

      The following MONGODB-AWS test fails:

      {
        "description": "should throw an exception if username and no password (MONGODB-AWS)",
        "uri": "mongodb://user@localhost/?authMechanism=MONGODB-AWS",
        "valid": false,
        "credential": null
      }
      

      The expected error is not returned. As a workaround, this test is planned to be skipped (search code for this ticket number).

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None