[
https://issues.apache.org/jira/browse/CAMEL-25472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-25472 started by Claus Ibsen.
-------------------------------------------
> 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
>
> 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)