You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (Jira)" <ji...@apache.org> on 2020/03/16 18:38:00 UTC

[jira] [Work started] (CAMEL-14723) Adding a restConfiguration() make all rest properties to be ignored

     [ https://issues.apache.org/jira/browse/CAMEL-14723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-14723 started by Luca Burgazzoli.
-----------------------------------------------
> 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
>
>
> 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)