-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Connection String
-
None
-
Not Needed
-
A mongodb+srv connection string with tls=false query parameter throws an exception:
Conflicting tls and ssl parameter values are not allowed java.lang.IllegalArgumentException: Conflicting tls and ssl parameter values are not allowed at com.mongodb.ConnectionString.initializeSslEnabled(ConnectionString.java:656) at com.mongodb.ConnectionString.translateOptions(ConnectionString.java:594) at com.mongodb.ConnectionString.<init>(ConnectionString.java:410)
Expected results: it should be possible to disable tls this way.
Workaround: use ssl=false instead
Note that mongodb+srv defaults to enabling TLS.