Andrea Cosentino created CAMEL-28033:
----------------------------------------
Summary: camel-aws2-ecs: describeCluster silently succeeds when
the cluster does not exist, and the component has no task operations
Key: CAMEL-28033
URL: https://issues.apache.org/jira/browse/CAMEL-28033
Project: Camel
Issue Type: Bug
Components: camel-aws2
Reporter: Andrea Cosentino
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. describeCluster ignores failures()
ECS DescribeClusters returns HTTP 200 with an empty {{clusters()}} and the
reason in {{failures()}}. The response processor in
{{ECS2Producer.describeCluster}} only reads {{clusters()}}, so a typo'd or
deleted cluster name yields an exchange with no {{CamelAwsECSClusterArn}}
header and no error at all; {{failures()}} is never surfaced as a header nor
checked.
Proposed change: fail the exchange, or at least set a header, when failures()
is not empty.
h4. 2. No task, task-definition or service operations
{{ECS2Operations}} is listClusters, describeCluster, createCluster,
deleteCluster. {{runTask}}, {{stopTask}}, {{listTasks}}, {{describeTasks}},
{{registerTaskDefinition}}, {{listServices}}, {{createService}} and
{{updateService}} are absent, which is the main reason to drive ECS from a
route (launch a batch task and follow it).
_Claude Code on behalf of oscerd_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)