Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.1.0, 3.4.1
-
None
-
Unknown
Description
The `amazonS3Client` query parameter takes the key of the bean in the registry as argument, however that key is not used.
Actually, today the component supports ONLY having 1 bean of type AmazonS3 in the registry, the following method in the S3Component shows it :
private void checkAndSetRegistryClient(S3Configuration configuration) { Set<AmazonS3> clients = this.getCamelContext().getRegistry().findByType(AmazonS3.class); if (clients.size() == 1) { configuration.setAmazonS3Client((AmazonS3)clients.stream().findFirst().get()); } }
Attachments
Issue Links
- links to