[ 
https://issues.apache.org/jira/browse/CAMEL-27925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27925:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-vertx-http for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/5f542b6878233d6013e30e1f58158711a5c8e283,
 pull request https://github.com/apache/camel/pull/31180).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. webClientOptions silently replaces other options
{{VertxHttpEndpoint.doStart}}: when webClientOptions is set (endpoint or 
component), connectTimeout, useCompression, tracingPolicy and the proxy options 
are ignored without a message. The descriptions now say so.
Proposed change: apply them on a copy, or warn when both are set.

h4. 2. http:// endpoints are called with TLS once sslContextParameters is set
{{DefaultVertxHttpBinding.prepareHttpRequest}} (no proxy): WebClient.request 
takes ssl from options.isSsl(), and the code only sets ssl(true) for https, so 
once sslContextParameters is set (also with useGlobalSslContextParameters) an 
http:// endpoint is called with TLS on port 80 and fails.
Proposed change: request.ssl("https".equalsIgnoreCase(uri.getScheme())).

h4. 3. Smaller issues
connectTimeout below 0 fails at start in Vert.x. cookieStore has defaultValue 
InMemoryCookieStore, but the field is null and CookieStore.build() is used. 
With allowJavaSerializedObject=false a response with the Java serialized 
content type ends with a null body without an error.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-vertx-http for 
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31180).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. webClientOptions silently replaces other options
{{VertxHttpEndpoint.doStart}}: when webClientOptions is set (endpoint or 
component), connectTimeout, useCompression, tracingPolicy and the proxy options 
are ignored without a message. The descriptions now say so.
Proposed change: apply them on a copy, or warn when both are set.

h4. 2. http:// endpoints are called with TLS once sslContextParameters is set
{{DefaultVertxHttpBinding.prepareHttpRequest}} (no proxy): WebClient.request 
takes ssl from options.isSsl(), and the code only sets ssl(true) for https, so 
once sslContextParameters is set (also with useGlobalSslContextParameters) an 
http:// endpoint is called with TLS on port 80 and fails.
Proposed change: request.ssl("https".equalsIgnoreCase(uri.getScheme())).

h4. 3. Smaller issues
connectTimeout below 0 fails at start in Vert.x. cookieStore has defaultValue 
InMemoryCookieStore, but the field is null and CookieStore.build() is used. 
With allowJavaSerializedObject=false a response with the Java serialized 
content type ends with a null body without an error.


_Claude Code on behalf of davsclaus_


> camel-vertx-http: webClientOptions silently replaces options, and http:// is 
> called with TLS once sslContextParameters is set
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27925
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27925
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-vertx-http
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-vertx-http for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/5f542b6878233d6013e30e1f58158711a5c8e283,
>  pull request https://github.com/apache/camel/pull/31180).
> These are separate problems of the component; the descriptions change only 
> documents the current behavior.
> h4. 1. webClientOptions silently replaces other options
> {{VertxHttpEndpoint.doStart}}: when webClientOptions is set (endpoint or 
> component), connectTimeout, useCompression, tracingPolicy and the proxy 
> options are ignored without a message. The descriptions now say so.
> Proposed change: apply them on a copy, or warn when both are set.
> h4. 2. http:// endpoints are called with TLS once sslContextParameters is set
> {{DefaultVertxHttpBinding.prepareHttpRequest}} (no proxy): WebClient.request 
> takes ssl from options.isSsl(), and the code only sets ssl(true) for https, 
> so once sslContextParameters is set (also with useGlobalSslContextParameters) 
> an http:// endpoint is called with TLS on port 80 and fails.
> Proposed change: request.ssl("https".equalsIgnoreCase(uri.getScheme())).
> h4. 3. Smaller issues
> connectTimeout below 0 fails at start in Vert.x. cookieStore has defaultValue 
> InMemoryCookieStore, but the field is null and CookieStore.build() is used. 
> With allowJavaSerializedObject=false a response with the Java serialized 
> content type ends with a null body without an error.
> _Claude Code on behalf of davsclaus_



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

Reply via email to