Details
-
Bug
-
Resolution: Fixed
-
Minor - P4
-
None
-
None
-
Not Needed
-
Description
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.