Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20663

camel-main: baseMainSupport may fail to doConfigureCamelContextFromMainConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.1
    • 4.4.2, 4.6.0
    • camel-main
    • None
    • Unknown

    Description

      According to https://camel.apache.org/manual/camel-4x-upgrade-guide-4_4.html#_camel_main, the property for enabling routeController is `camel.routecontroller.enabled.` Unfortunatelly if such property is used, following code is ignoring it (https://github.com/apache/camel/blob/main/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java#L1103) - because od lowercase vs camelCase.

       

      If I changethe if to ignore case, I got another error, because value is not loaded correctly (in the next lines of the baseMainSupport)

      Problem can be simulated whenrunning test on camel-quarkus-examples/health (just change property in this line https://github.com/apache/camel-quarkus-examples/blob/main/health/src/main/resources/application.properties#L31 to camel.routeController.enabled = true

       

      I think that more properties might be affected by this error.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              jondruse Jiri Ondrusek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: