You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/12/14 14:26:00 UTC
[jira] [Resolved] (CAMEL-18812) REST DSL configuration placeholder for .id() doesn't work
[ https://issues.apache.org/jira/browse/CAMEL-18812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-18812.
---------------------------------
Resolution: Fixed
Thanks for reporting and the PR
> 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: Improvement
> Components: camel-core-model
> Affects Versions: 3.18.4
> Reporter: Nikola Glidzic
> Priority: Minor
> 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)