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

Camel route model - Preserve {{ }} placeholders in model

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.0
    • Fix Version/s: 2.16.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When people use {{ }} property placeholders in the route model, it gets resolved with the actual value during route creation, and the original {{ }} is lost.

      What we should do is preserve the {{ }} and do the resolve on demand (on access). The trick is to make this transparent, or to keep a shadow map of the {{ }} to actual mapping or something.

      But by preserving the {{ }} we can make round trip editing possible. And also if people use {{ }} for username and passwords, then they are not exposed in the model.

      ITs this logic that resolves the placeholders currently
      org.apache.camel.model.ProcessorDefinitionHelper#resolvePropertyPlaceholders(org.apache.camel.CamelContext, java.lang.Object)

        Attachments

          Activity

            People

            • Assignee:
              chirino Hiram Chirino
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: