You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Nikola Glidzic (Jira)" <ji...@apache.org> on 2022/12/14 10:22:00 UTC

[jira] [Created] (CAMEL-18812) REST DSL configuration placeholder for .id() doesn't work.

Nikola Glidzic created CAMEL-18812:
--------------------------------------

             Summary: REST DSL configuration placeholder for .id() doesn't work.
                 Key: CAMEL-18812
                 URL: https://issues.apache.org/jira/browse/CAMEL-18812
             Project: Camel
          Issue Type: Bug
          Components: camel-core-model
    Affects Versions: 3.18.4
            Reporter: Nikola Glidzic
             Fix For: 3.18.5, 3.20.0


*How to reproduce*

Make rest dsl route:

{code}
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")
{code}

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:
{code}
forceAssignIds(CamelContext context, List<RouteDefinition> routes)
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)