[
https://issues.apache.org/jira/browse/CAMEL-26795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-26795.
---------------------------------
Resolution: Fixed
Merged in https://github.com/apache/camel/pull/29523 (ca8c66b214dd).
_Claude Code on behalf of davsclaus_
> camel-jbang - a chaos experiment feeds a file route with files its filter
> takes, and camel cmd send --repeat numbers a CamelFileName
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-26795
> URL: https://issues.apache.org/jira/browse/CAMEL-26795
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> A chaos experiment feeds a route that starts from file:<folder> by sending to
> that endpoint: the file producer writes each message as a file into the
> folder the route polls, named by the exchange id. That works (tried live),
> but a route with a filter such as include=.*\.json or antInclude=*.json skips
> files without the extension, so the experiment FAILs with 0 completed, as if
> the route lost them: a false finding.
> * The experiment names the files of a file feed so they pass the filter of
> the route: chaos-<time>.<extension>, the extension from include or
> antInclude, else from the body (json, xml, txt).
> * camel cmd send with --repeat (or a folder) numbers a CamelFileName header
> per message (order.json becomes order-1.json, order-2.json), so a file
> endpoint gets one file per message instead of overwriting one.
> Found while analysing how a chaos experiment can feed each kind of route
> (CAMEL-26760, CAMEL-26792).
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)