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

srv URLs ignore tls=

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 4.0.0
    • Affects Version/s: 4.0.0
    • Component/s: None
    • Not Needed

      What problem are you facing?

      In https://github.com/mongodb/node-mongodb-native/blob/356fa9bf776447dce3614b7b3d6b30c0998aa512/src/connection_string.ts#L232-L236, tls is set to true unconditionally. Since options object options take preference over URL options, it is impossible to set tls=false or ssl=false using the URL, even though it should be possible to do so.

      What driver and relevant dependency versions are you using?

      4.0.0-beta.6

      Steps to reproduce?

      Connect to a mongodb server with TLS disabled using a mongodb+srv:// URL and tls=false.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: