Claus Ibsen created CAMEL-27219:
-----------------------------------

             Summary: camel-ai-tool - a configuration bean replaces the options 
set on the component or the endpoint, such as authorizationPolicy
                 Key: CAMEL-27219
                 URL: https://issues.apache.org/jira/browse/CAMEL-27219
             Project: Camel
          Issue Type: Bug
            Reporter: Claus Ibsen
             Fix For: 4.24.0


When an AiToolConfiguration bean is given as the configuration option, the 
options set at the same level are replaced by the bean.

- On the component, setting both camel.component.ai-tool.configuration and 
camel.component.ai-tool.authorization-policy ends with no policy, because the 
options are bound before the configuration.
- On an endpoint, configuration=#bean replaces the endpoint options and the 
values from the component, such as authorizationPolicy and allowedRoles.

The bean and the options should combine: an option that is set wins over the 
bean's value, and a value the bean does not set keeps the option's or the 
component's value.

_Claude Code on behalf of Claus Ibsen_




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to