Claus Ibsen created CAMEL-27748:
-----------------------------------
Summary: camel-minio: the scheme of the endpoint is ignored when
proxyPort is set
Key: CAMEL-27748
URL: https://issues.apache.org/jira/browse/CAMEL-27748
Project: Camel
Issue Type: Bug
Components: camel-minio
Reporter: Claus Ibsen
Fix For: 4.24.0
When {{proxyPort}} is set, {{MinioEndpoint.createMinioClient()}} calls
{{MinioClient.Builder.endpoint(endpoint, proxyPort, secure)}}. That overload of
the MinIO SDK (9.0.3) replaces the scheme of the endpoint with {{secure ?
"https" : "http"}}, and {{secure}} defaults to false. So
{{endpoint=https://host&proxyPort=9000}} connects with plain HTTP, and
{{endpoint=http://host&proxyPort=9000&secure=true}} uses HTTPS.
Fix: when proxyPort is set and the endpoint has the http:// or https:// scheme,
keep that scheme; {{secure}} applies only to a host name without a scheme.
Update the descriptions of {{secure}} and {{proxyPort}}, and add an
upgrade-guide entry.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)