[ 
https://issues.apache.org/jira/browse/CAMEL-25390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-25390.
---------------------------------
    Resolution: Fixed

Merged in https://github.com/apache/camel/pull/27912 (commit 90560e226036): 
every action with a request id now gets an answer from the file transport (its 
result, {"status":"failed","error":...} with "reason":"not-found" where it 
applies, or {"status":"success"} for an action without a result). The shared 
action file of older CLI versions keeps its behaviour.

_Claude Code on behalf of davsclaus (Claus Ibsen)_

> camel-cli-connector - Always reply to CLI actions, including errors and acks
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-25390
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25390
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> * {{FileCliConnectorTransport}} always writes an output file: the result, or 
> {{\{"status":"error","message":...,"action":...\}}} when the action reports 
> an error via {{CliActionOutput.error()}}, the action is unknown, or dispatch 
> throws.
> * Fire-and-forget actions (route start/stop/suspend/resume, processor 
> enable/disable, gc, reload, reset-stats, logger) write an ack ({{status: 
> success}} or the error).
> * Share the error mapping with {{WebSocketCliConnectorTransport}} so both 
> transports behave the same.
> _Claude Code on behalf of davsclaus (Claus Ibsen)_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to