[
https://issues.apache.org/jira/browse/CAMEL-28014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153829#comment-18153829
]
Guillaume Nodet commented on CAMEL-28014:
-----------------------------------------
This issue is being investigated by a coding agent (on behalf of gnodet).
Root cause confirmed: DaprExchangeHeaders.getTimeoutFromHeaders() (line 186)
reads DaprConstants.GET_WORKFLOW_IO ("CamelDaprGetWorkflowIO") instead of
DaprConstants.TIMEOUT ("CamelDaprTimeout") - a copy-paste error. This causes
the CamelDaprTimeout message header to always be ignored for
waitForInstanceStart and waitForInstanceCompletion operations.
_Note: This comment was generated by an AI coding agent and requires manual
verification._
> 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)