Claus Ibsen created CAMEL-27218:
-----------------------------------

             Summary: camel-mongodb - the tls and tlsAllowInvalidHostnames 
options are not applied to the client created from hosts or connectionUriString
                 Key: CAMEL-27218
                 URL: https://issues.apache.org/jira/browse/CAMEL-27218
             Project: Camel
          Issue Type: Bug
          Components: camel-mongodb
            Reporter: Claus Ibsen
             Fix For: 4.24.0


The mongodb endpoint creates its own MongoClient when hosts or 
connectionUriString is set. The tls and tlsAllowInvalidHostnames endpoint 
options are not applied to that client; only sslContextParameters is. An 
endpoint with tls=true and no sslContextParameters therefore connects without 
TLS.

The TLS options should be applied on top of the connection string, the same way 
for hosts and connectionUriString. When none of them is set, the TLS settings 
of the connection string should be kept.

_Claude Code on behalf of Claus Ibsen_




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to