Andrea Cosentino created CAMEL-25443:
----------------------------------------

             Summary: camel-jbang-plugin-tui - do not classify 
camel_eval_expression as read-only
                 Key: CAMEL-25443
                 URL: https://issues.apache.org/jira/browse/CAMEL-25443
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Andrea Cosentino


camel_eval_expression is currently in TuiToolRegistry.READ_ONLY_TOOLS 
(ToolDescriptor defaults readOnly=true and AuthoringTools does not override 
it), so the ACP permission handler auto-approves it without prompting. Because 
it evaluates expressions in any language and downloads the language's component 
on demand, it should not be treated as read-only / auto-approved. Mark it 
readOnly(false), or restrict silent handling to a set of non-scripting 
languages.

Module: dsl/camel-jbang/camel-jbang-core (AuthoringTools), 
dsl/camel-jbang/camel-jbang-plugin-tui.



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

Reply via email to