Repository navigation
[backport camel-4.22.x] CAMEL-26343: camel-aws - set the AWS SDK HTTP client explicitly instead of the classpath lookup - #28564
Merged
oscerd merged 1 commit intoOct 29, 2026
Conversation
…ad of the classpath lookup
AwsClientBuilderUtil set an HTTP client on the SDK client builder only
with a proxy or trustAllCertificates. Otherwise the AWS SDK looked the
client up with ServiceLoader, and that lookup fails as a whole when one
registration cannot be loaded, as when a Kafka Connect plugin sees the
apache-client registration of the worker's own AWS SDK
("ApacheSdkHttpService not a subtype").
Set Apache5HttpClient (sync) and NettyNioAsyncHttpClient (async), the
implementations the lookup selects from Camel's dependencies, unless the
AWS SDK setting software.amazon.awssdk.http.service.impl (or
software.amazon.awssdk.http.async.service.impl) names one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
This was referenced Oct 27, 2026
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
🔬 Scalpel shadow comparison — Scalpel: 43 tested, 29 compile-only — current: 43 all testedMaveniverse Scalpel detected 72 affected modules (current approach: 43).
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #28563
Cherry-pick of the code and test commit of #28563 onto
camel-4.22.x.Original PR: #28563 - CAMEL-26343: camel-aws - set the AWS SDK HTTP client explicitly instead of the classpath lookup
Original author: @oscerd
Target branch:
camel-4.22.xThis PR stays a draft until #28563 is merged. If review changes the fix, I'll refresh this from the merged commit.
The 4.22.3 upgrade-guide note is not part of this backport. Per the backport policy it lives on
main, in #28563.camel-4.22.xuses AWS SDK 2.50.2, the version in the reported failure (apache/camel-kafka-connector#1849).AwsClientBuilderUtilis identical on both branches, and the cherry-pick applied cleanly.Validation on this branch:
mvn verify -f components/camel-aws/pom.xml: the unit tests of all 35 camel-aws modules pass (1682 tests, 0 failures, 0 errors, 181 skipped), including the 4AwsClientBuilderUtilTesttests against AWS SDK 2.50.2.Original description
See #28563.
Claude Code on behalf of Andrea Cosentino
🤖 Generated with Claude Code