This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 29a9ebe45b4b CAMEL-23665: Remove deprecated no-op setTlsDetailsFactory
in camel-opensearch
29a9ebe45b4b is described below
commit 29a9ebe45b4b0f84dc244998e4ec106f84e4b660
Author: Ravi <[email protected]>
AuthorDate: Mon Jun 8 12:33:40 2026 +0530
CAMEL-23665: Remove deprecated no-op setTlsDetailsFactory in
camel-opensearch
Remove the deprecated setTlsDetailsFactory() call and unused TlsDetails
import from OpensearchProducer. In httpclient5 5.6.x this method is
@Deprecated and does nothing — the builder resolves ALPN internally.
This aligns camel-opensearch with camel-elasticsearch which already
builds its TLS strategy without it.
Closes #23824
---
.../org/apache/camel/component/opensearch/OpensearchProducer.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git
a/components/camel-opensearch/src/main/java/org/apache/camel/component/opensearch/OpensearchProducer.java
b/components/camel-opensearch/src/main/java/org/apache/camel/component/opensearch/OpensearchProducer.java
index efd79fbe4af9..f3570d6cb9fb 100644
---
a/components/camel-opensearch/src/main/java/org/apache/camel/component/opensearch/OpensearchProducer.java
+++
b/components/camel-opensearch/src/main/java/org/apache/camel/component/opensearch/OpensearchProducer.java
@@ -46,7 +46,6 @@ import
org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBu
import org.apache.hc.client5.http.ssl.ClientTlsStrategyBuilder;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.nio.ssl.TlsStrategy;
-import org.apache.hc.core5.reactor.ssl.TlsDetails;
import org.apache.hc.core5.util.Timeout;
import org.opensearch.client.RestClient;
import org.opensearch.client.RestClientBuilder;
@@ -514,9 +513,7 @@ class OpensearchProducer extends DefaultAsyncProducer {
// Build TLS strategy
ClientTlsStrategyBuilder tlsStrategyBuilder =
ClientTlsStrategyBuilder.create()
-
.setHostnameVerifier(configuration.getHostnameVerifier())
- .setTlsDetailsFactory(
- sslEngine -> new
TlsDetails(sslEngine.getSession(), sslEngine.getApplicationProtocol()));
+
.setHostnameVerifier(configuration.getHostnameVerifier());
// Set SSL context if available
if (sslContext != null) {