[
https://issues.apache.org/jira/browse/CAMEL-28014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-28014.
---------------------------------
Resolution: Fixed
Fixed by https://github.com/apache/camel/pull/31237 (merged to main for 4.25.0).
_Claude Code on behalf of davsclaus_
> camel-dapr - the CamelDaprTimeout header is ignored
> ---------------------------------------------------
>
> Key: CAMEL-28014
> URL: https://issues.apache.org/jira/browse/CAMEL-28014
> Project: Camel
> Issue Type: Bug
> Components: camel-dapr
> Reporter: Claus Ibsen
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 4.25.0
>
>
> DaprExchangeHeaders.getTimeoutFromHeaders reads the header
> DaprConstants.GET_WORKFLOW_IO instead of DaprConstants.TIMEOUT:
> {code:java}
> public static Duration getTimeoutFromHeaders(final Exchange exchange) {
> return getObjectFromHeaders(exchange, DaprConstants.GET_WORKFLOW_IO,
> Duration.class);
> }
> {code}
> So a CamelDaprTimeout header on the message has no effect on the
> waitForInstanceStart and waitForInstanceCompletion workflow operations, and
> the timeout option of the endpoint is always used. A CamelDaprGetWorkflowIO
> header (a Boolean) is converted to a Duration instead.
> Fix: read DaprConstants.TIMEOUT, and add a test that the header overrides the
> option.
> Found while declaring the message headers of the components (CAMEL-27980).
> ----
> _Filed by Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)