[
https://issues.apache.org/jira/browse/CAMEL-14723?focusedWorklogId=404459&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-404459
]
ASF GitHub Bot logged work on CAMEL-14723:
------------------------------------------
Author: ASF GitHub Bot
Created on: 17/Mar/20 05:18
Start Date: 17/Mar/20 05:18
Worklog Time Spent: 10m
Work Description: davsclaus commented on pull request #3639: CAMEL-14723:
Adding a restConfiguration() make all rest properties to be ignored
URL: https://github.com/apache/camel/pull/3639
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 404459)
Remaining Estimate: 0h
Time Spent: 10m
> 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)