oscerd opened a new pull request, #24928: URL: https://github.com/apache/camel/pull/24928
## Description Fixes [CAMEL-24201](https://issues.apache.org/jira/browse/CAMEL-24201). `StepFunctions2Producer.listExecutions` built the request with only `maxResults`: ```java ListExecutionsRequest.Builder builder = ListExecutionsRequest.builder(); if (ObjectHelper.isNotEmpty(exchange.getIn().getHeader(StepFunctions2Constants.EXECUTIONS_MAX_RESULTS))) { builder.maxResults(maxRes); } ``` The AWS `ListExecutions` API **requires** a `stateMachineArn` (or a `mapRunArn`), so in header (non-POJO) mode the call was always rejected by AWS — the operation was effectively unusable. The `CamelAwsStepFunctionsStateMachineArn` header already exists and is read by the sibling operations (`deleteStateMachine`, `updateStateMachine`, `describeStateMachine`, …), but `listExecutions` never read it. The ARN is now read from that header using the same optional-header pattern as its siblings. ## Tests Extends the existing `sfnListExecutionsTest` to set the state-machine-ARN header and assert (via the client mock, which now records the request) that it reaches the `ListExecutionsRequest`. All 17 tests in `StepFunctions2ProducerTest` pass. ## Backport Same code on `camel-4.18.x` and `camel-4.14.x`; will be backported after merge (fixVersions 4.22.0 / 4.18.4 / 4.14.9). --- _Claude Code on behalf of oscerd_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
