-
Type: Bug
-
Resolution: Fixed
-
Priority: Blocker - P1
-
Affects Version/s: 4.0.0
-
Component/s: None
-
Empty show more show less
-
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.
- is depended on by
-
COMPASS-4928 SSL enabled with srv records even when SSL is set to none
- Closed
- is duplicated by
-
NODE-3415 Srv resolution options taking precedence over connection string params
- Closed