Claus Ibsen created CAMEL-26848:
-----------------------------------

             Summary: camel-jbang - camel export drops a key of 
application.properties that the run settings repeat, such as 
camel.server.port=8080
                 Key: CAMEL-26848
                 URL: https://issues.apache.org/jira/browse/CAMEL-26848
             Project: Camel
          Issue Type: Bug
          Components: camel-jbang
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 4.24.0


camel export (and camel run with the camel-main, spring-boot or quarkus 
runtime, which the TUI uses by default) removes from the exported 
application.properties every key of the run settings that is not camel.main.*. 
The run settings repeat some keys of the user's application.properties, such as 
camel.server.port, so those keys are lost too.

The chaos example (fail-well/chaos) has camel.server.port=8080 and a route that 
calls http://localhost:{{camel.server.port}}/payment. Run from the TUI it fails 
to start:

{noformat}
Failed to resolve endpoint: http://localhost:{{camel.server.port}}/payment due 
to: Property with key [camel.server.port] not found
{noformat}

A port other than 8080 happened to work, as the Camel Main exporter adds 
camel.server.port back when it is not the default.

The fix keeps a key the application.properties sets, with its value.

_Claude Code on behalf of Claus Ibsen_



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

Reply via email to