[ 
https://issues.apache.org/jira/browse/CAMEL-28004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-28004 started by Guillaume Nodet.
-----------------------------------------------
> camel-jbang - camel run and camel export read some configuration keys wrongly
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-28004
>                 URL: https://issues.apache.org/jira/browse/CAMEL-28004
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> h4. 1. KameletMain reads keys the CLI never writes
> It reads camel.jbang.camelVersion and camel.jbang.open-api, but the CLI 
> writes camel.jbang.camel-version and camel.jbang.openApi. So the Camel 
> version never reaches DependencyDownloaderPeriodTaskResolver / 
> DependencyDownloaderRoutesLoader, and OpenApiGeneratorReloadStrategy is never 
> added. Proposed change: read the CamelJBangConstants keys.
> h4. 2. camel run ignores some keys in application.properties
> ignoreLoadingError, lazyBean, prompt (written only when the flag is given), 
> localKameletDir, camelSpringBootVersion (RunProfileProperties.applyTo does 
> not read them). Proposed change: read them when the option is not given, as 
> for stub and dataDir.
> h4. 3. camel.jbang.jfr=true records nothing
> KameletMain turns JFR on only for the value "jfr", while the metadata type is 
> boolean. Proposed change: accept true.
> h4. 4. camel export lets application.properties override the command line
> ProjectExporter.doLoadAndInitProfileProperties overwrites runtime, and reads 
> gav, parentPom, javaVersion, camelVersion, kameletsVersion, springBootVersion 
> with props.getProperty(KEY, request.x), so the file wins. camel run fixed the 
> same in CAMEL-26930. Proposed change: skip the keys whose option was given.
> h4. 5. Small
> camel run --health and --metrics say /q/health and /q/metrics, but the 
> defaults are /observe/health and /observe/metrics. The runtime enum lists 3 
> values while RuntimeType.fromValue accepts more. The doc example camel config 
> set camel-version=3.18.4 no longer works.
> Found while checking the option and console descriptions of CAMEL-27980.
> ----
> _Filed by Claude Code on behalf of davsclaus_



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

Reply via email to