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

Connection string URI parsing is no correct

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: legacy-1.0.5
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:

      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

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

                Dates

                Created:
                Updated:
                Resolved: