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

REST DSL configuration placeholder for .id() doesn't work

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.4
    • 3.18.5, 3.20.0
    • came-core
    • None
    • Unknown

    Description

      How to reproduce

      Make rest dsl route:

      rest() 
          .post("{{endpoint.uri}}")     // <- loaded nice from configuration
          .id("{{endpoint.id}}")        // <- NOT loaded from configuration
          .type(Claim.class)
          .consumes("application/json")
          .bindingMode(RestBindingMode.json)
          .to("direct:some_channel")
      

      Placeholder for endpoint.uri is loaded nice from the configuration, but endpoint.id is not loaded at all.

      Acceptance criteria
      Placeholder for .id() should work nicely, same as placeholder for uri.

      Hint for solution
      Most probably fix should be done in RouteDefinitionHelper.java in method:

      forceAssignIds(CamelContext context, List<RouteDefinition> routes)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nikolagikor Nikola Glidzic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: