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

   JIRA: [CAMEL-27748](https://issues.apache.org/jira/browse/CAMEL-27748)
   
   When `proxyPort` is set, `MinioEndpoint.createMinioClient()` called 
`MinioClient.Builder.endpoint(endpoint, proxyPort, secure)`. In the MinIO SDK 
9.0.3 that overload (`Http.BaseUrl(String, int, boolean)`) parses the endpoint 
and then sets the scheme to `secure ? "https" : "http"`, and `secure` defaults 
to false. So `endpoint=https://host&proxyPort=9000` connected with plain HTTP, 
and `endpoint=http://host&proxyPort=9000&secure=true` used HTTPS.
   
   Changes:
   - With `proxyPort`, an endpoint with the `http://` or `https://` scheme 
keeps its scheme. `secure` applies only to a host name without a scheme, as 
before. `secure=true` with an `http://` endpoint logs a WARN that the option is 
not used.
   - Descriptions of `secure` and `proxyPort` updated.
   - Upgrade-guide entry: an `https://` endpoint with `proxyPort` now uses 
HTTPS, and an `http://` endpoint with `secure=true` now uses HTTP.
   - `MinioProxyPortSchemeTest`: a loopback socket records the first byte of 
each connection that the built client opens (`0x16` for a TLS ClientHello, the 
method letter for plain HTTP). It checks `https://` + `proxyPort` (TLS), 
`http://` + `proxyPort` + `secure=true` (plain), and a bare host name with and 
without `secure`. No MinIO server is needed. Without the fix, the first two 
fail: the `https://` endpoint sent `HEAD` in plain text. All 44 unit tests of 
the module pass.
   - Regenerated the component JSON, the catalog copy and the 
endpoint/component DSL.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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