Files
floci/src
Hector Ventura 4927f71ce1 fix(ecs): look up a task definition without failing on a stored record with no ARN (#5296)
* fix(ecs): look up a task definition without failing on a stored record with no ARN

resolveTaskDefinitionOrThrow compared each stored definition's ARN with
d.getTaskDefinitionArn().equals(ref), so a family or family:revision lookup
threw a NullPointerException when the region held a definition with no ARN.
The comparison is now null-safe, and EcsTaskDefinitionLegacyKeyTest covers a
family lookup next to such a record.

* fix(ecs): answer a missing task definition reference with ClientException

A null or blank reference reached the lookup's comparisons and threw a
NullPointerException, a 500, once the region held any task definition:
the family fallback's family.equals(...) failed even before the
null-safe ARN comparison. It is now refused up front with the same
ClientException an unknown reference gets.

* test(ecs): cover the family lookup in the existing no-ARN test
2026-10-08 11:15:40 -04:00
..