[
https://issues.apache.org/jira/browse/CAMEL-14723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-14723.
---------------------------------
Resolution: Fixed
> Adding a restConfiguration() make all rest properties to be ignored
> -------------------------------------------------------------------
>
> Key: CAMEL-14723
> URL: https://issues.apache.org/jira/browse/CAMEL-14723
> Project: Camel
> Issue Type: Improvement
> Components: camel-core, camel-main
> Affects Versions: 3.1.0
> Reporter: Luca Burgazzoli
> Assignee: Luca Burgazzoli
> Priority: Major
> Fix For: 3.2.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Assuming we have a route defined like:
> {code:java}
> import org.apache.camel.builder.RouteBuilder;
> public class Called extends RouteBuilder {
> @Override
> public void configure() throws Exception {
> restConfiguration();
> rest().get("/")
> .route()
> .setBody().constant("Ciao");
> }
> }
> {code}
> Then any rest property like camel.rest.port=8080 is ignored and overridden by
> an empty RestConfiguration see
> [RouteBuilder::populateRests|https://github.com/apache/camel/blob/6882c7a4d85c2f4650263e0695aaa3bad6e129dc/core/camel-core-engine/src/main/java/org/apache/camel/builder/RouteBuilder.java#L530-L540]
> It would be nice if the properties could be propagated to any
> `RestConfiguration`
--
This message was sent by Atlassian Jira
(v8.3.4#803005)