Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1553

ReplicaSet connection string not working when using useNewUrlParser

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.0
    • Component/s: None
    • Labels:

      It's because in URL parser all query parameters / options are normalized to lowercase https://github.com/mongodb-js/mongodb-core/blob/master/lib/uri_parser.js#L176 and in code there is check for original case https://github.com/mongodb/node-mongodb-native/blob/09c7d8e4ce302f1c8f6339dd19ee4b86e40b30a8/lib/operations/mongo_client_ops.js#L206 and `replicaset` !== `replicaSet`

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            vrtak-cz Patrik Voto?ek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: