ReplicaSet connection string not working when using useNewUrlParser

XMLWordPrintableJSON

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

      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
              Reporter:
              Patrik Voto?ek
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: