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

Support for MongoDB URIs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: legacy-0.11.0
    • Component/s: API, Implementation
    • Security Level: Public
    • Environment:
      C++ driver from 2.4.9 source (on Windows, though that shouldn't matter for this item). The 2.5.4 source does not look to be any different.

      Description

      The C++ driver does not accept connection strings that are URIs from http://docs.mongodb.org/manual/reference/connection-string/

      We have configuration that is shared between apps that use the C++ driver and the C# driver. Because of this issue our work around would be to double-configure Mongo once for the C++ driver and once for everything else.

      Unfortunately, there seems to be no documentation on what the C++ driver currently accepts. A google of "mongodb C++ driver connection string" gives this stack overflow question http://stackoverflow.com/questions/14629281/c-driver-mongodb-connection-options that basically says it's undocumented.

      If MongoDB is not going to get the C++ driver up to snuff with the rest of the drivers, then please at least document how to translate from the URI syntax to something the C++ driver can understand.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              acm Andrew Morrow
              Reporter:
              timothyb Timothy Byrd
              Participants:
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: