davsclaus opened a new pull request, #26170:
URL: https://github.com/apache/camel/pull/26170

   ## Backport of #26167
   
   Cherry-pick of #26167 onto `camel-4.22.x`.
   
   **Original PR:** #26167 - CAMEL-24632: camel-http - fix proxy scheme 
defaulting to https for https targets
   **Original author:** @davsclaus
   **Target branch:** `camel-4.22.x`
   
   ### Original description
   
   Fixes `SSLException: Unsupported or unrecognized SSL message` when calling 
an `https://` endpoint via an HTTP proxy using the `camel-http` component.
   
   `HttpComponent.configureHttpProxy()` was deriving the proxy connection 
scheme from the target endpoint scheme, which is wrong. The proxy connection 
scheme is independent of the target — connecting to an HTTPS target through an 
HTTP proxy uses a plain HTTP CONNECT tunnel, with TLS established end-to-end 
inside that tunnel.
   
   Fix defaults `proxyAuthScheme` to `"http"` unconditionally in 
`HttpComponent`, `HttpEndpoint` (deprecated global-options path), and updates 
the `defaultValue` metadata in `HttpCommonEndpoint` and `HttpConfiguration`. 
Catalog and DSL regenerated.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to