[
https://issues.apache.org/jira/browse/CAMEL-28036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino reassigned CAMEL-28036:
----------------------------------------
Fix Version/s: 4.25.0
Assignee: Andrea Cosentino
> camel-aws2-polly: the health check probe is unrelated to the operation, and
> the list operations have no filters
> ---------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-28036
> URL: https://issues.apache.org/jira/browse/CAMEL-28036
> Project: Camel
> Issue Type: Improvement
> Components: camel-aws2
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.25.0
>
>
> Found during an audit of the cloud components (camel-aws, camel-azure,
> camel-google, camel-huawei) at commit 7c0644752e17. Every item below was
> verified against the source.
> h4. 1. The health check calls describeVoices whatever the operation is
> {{Polly2ProducerHealthCheck}} always calls
> {{pollyClient.describeVoices(...)}}. {{polly:DescribeVoices}} is free and
> usually granted, so this is milder than the comprehend and textract cases,
> but a role scoped to {{polly:SynthesizeSpeech}} only still reports DOWN.
> h4. 2. The list and describe operations have no filters
> {{describeVoices}} cannot set {{includeAdditionalLanguageCodes}}, and
> {{listSpeechSynthesisTasks}} cannot set {{status}} or {{maxResults}}: only
> nextToken is wired. A route cannot ask for "only completed tasks" or control
> the page size without pojoRequest.
> h4. 3. Smaller issues
> {{setUseDefaultCredentialsProvider(Boolean)}} assigns to a {{private
> boolean}} field: a null throws NPE on unboxing.
> {{@Metadata(required = true)}} and a defaultValue sit on the same
> {{operation}} option, which is contradictory: an option with a default is not
> required.
> _Claude Code on behalf of oscerd_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)