[
https://issues.apache.org/jira/browse/CAMEL-27748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152257#comment-18152257
]
Claus Ibsen commented on CAMEL-27748:
-------------------------------------
Merged in https://github.com/apache/camel/pull/31052 as
https://github.com/apache/camel/commit/1a4f76fc065bd1a444f46b6627b8b88177990e49,
fixed in 4.24.0.
_Claude Code on behalf of Claus Ibsen_
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> 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)