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

PropertyPlaceHolder not loading Property, thinks it is a Parameter

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.16.2, 2.17.0
    • Fix Version/s: 2.16.3, 2.17.1, 2.18.0
    • Component/s: camel-swagger, rest
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When loading a standard rest service into Camel and setting up Swagger.

      rest("{{BASE_URL}}").get("/{customerId}").description("...")...
      

      The Base_URL portion is
      1. interpreted as a parameter much like

      {customerId}

      , i.e. the JSON displays: "

      {BASE_URL}

      " and "customerId" as the parameter name (removing outside curly brace)
      2. the associated property is not loaded from the properties file

      The Property Place Holder portion though works for the rest-dsl configuration:

       restConfiguration().apiProperty("api.title", "{{spring.application.name}}")
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              flavouski Flavel Heyman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: