Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-438

ConnectionString should default to using the specified DB and use a default mechanism

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: legacy-1.0.0-rc2
    • Fix Version/s: legacy-1.0.0-rc3
    • Component/s: None
    • Labels:
    • Environment:
      linux, gcc, c++11

      Description

      Connecting with ConnectionString works great when not authenticating.

      Authentication needs implicit authMechanism authSource declarations.

      I propose using the specified DB (if specified and authSource isn't) as the connection string already allows for this:
      mongodb://user:pass@host:port/DB

      Furthermore authMechanism has no default value and must be explicitly defined in the connection string.

        Attachments

          Activity

            People

            Assignee:
            spencer.jackson Spencer Jackson
            Reporter:
            pieterwjordaanpc@gmail.com Pieter Jordaan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: