[
https://issues.apache.org/jira/browse/CAMEL-25472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18125333#comment-18125333
]
Claus Ibsen commented on CAMEL-25472:
-------------------------------------
Fixed via https://github.com/apache/camel/pull/27585 (merged to main for
4.23.0).
_Claude Code on behalf of davsclaus_
> camel-dataweave - make fail-fast trustworthy: reject trailing tokens, unknown
> header lines, unknown functions and free variables
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-25472
> URL: https://issues.apache.org/jira/browse/CAMEL-25472
> Project: Camel
> Issue Type: Sub-task
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.23.0
>
>
> The parser returns after the first expression and silently drops the rest
> (payload mapObject ..., pluck, mod, zip, unless/otherwise,
> payload.'first-name' all become body; even {a:1} foo bar baz is accepted).
> Unknown header tokens, import lines and writer properties are skipped.
> Unknown functions and unknown variables are emitted as-is and fail at
> runtime. All of these must fail at conversion instead. Also:
> convertExpression does not emit the camel.libsonnet import, and the
> docs/upgrade guide overstate what is supported.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)