Files
floci/src/main/java/io/github
TiM d75c32c9f7 fix(lambda): accept name, partial ARN, and full ARN for {FunctionName} (#450)
Real AWS accepts bare name, partial ARN (ACCT:function:NAME), and full
ARN (arn:aws:lambda:REGION:ACCT:function:NAME) for every endpoint that
takes {FunctionName}, optionally suffixed with :qualifier. Floci only
matched the stored short name, so ~20 Lambda endpoints 404'd on ARN
forms.

Introduce LambdaArnUtils.resolve() as the single parse point; normalize
inputs in LambdaService at every user-facing method so downstream store,
warm-pool, code-store, and alias-store operations all use the canonical
short name. createFunction now deduplicates across name/ARN forms.

- Enforce region match when a full function ARN is supplied (400 on
  mismatch with the request region or with an event-source ARN region).
- Tag endpoints require an unqualified full function ARN; reject
  qualified ARNs and partial ARNs.
- URL config endpoints reconcile ARN-embedded qualifier with ?Qualifier=
  and 400 on conflict.
- listEventSourceMappings normalizes its FunctionName filter so partial
  ARNs no longer miss stored mappings.

Fixes floci-io/floci#434.
2026-04-14 22:12:58 -05:00
..