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

Connection string URI parsing is no correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • legacy-1.0.5
    • None
    • None

    Description

      This is connection string URI example case:

      mongodb://localhost:27017,localhost:27018,localhost:27019/sampleDb?replicaSet=rs0&socketTimeoutMS=5000

      When trying to parse this example using ConnectionString::parse, receive the following error:

      "Cannot list multiple servers in URL without 'replicaSet' option"

      But if I change socketTimeoutMS to connectTimeoutMS everything is OK then.

      Moreover, when specifying

      mongodb://localhost:27017/sampleDb?socketTimeoutMS=30000&w=majority

      Getting strange error too:

      "Bad digit "/" while parsing 27017/sampleDb?socketTimeoutMS=30000&w=majority"

      Looks like something is bad with socketTimeoutMS option.

      Attachments

        Issue Links

          Activity

            People

              backlog-cxx-driver Backlog - CXX Driver Team
              pyslaruvlad Pyslaru Vlad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: