You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Guillaume LECROC (Jira)" <ji...@apache.org> on 2021/09/03 10:32:00 UTC
[jira] [Created] (CAMEL-16920) Dump routes does not show uri with
endpointdsl
Guillaume LECROC created CAMEL-16920:
----------------------------------------
Summary: Dump routes does not show uri with endpointdsl
Key: CAMEL-16920
URL: https://issues.apache.org/jira/browse/CAMEL-16920
Project: Camel
Issue Type: Bug
Components: came-core
Affects Versions: 3.11.0
Reporter: Guillaume LECROC
In the example below, if I print the route at startup with "camel.springboot.dump-routes=true", the "from" URI is not set, but the "to" URI is set because I call "endpoint.getURI()"
Input :
{code:java}
from(file("/inputDir/"))
.log("New file: ${header.CamelFileName}")
.to(file("/inputDir/").getUri());{code}
Output :
{noformat}
2021-09-03 12:29:03.485 INFO 27620 --- [ main] o.apache.camel.impl.DefaultCamelContext :
<routes xmlns="http://camel.apache.org/schema/spring">
<route id="route1">
<from/>
<log id="log3" message="New file: ${header.CamelFileName}"/>
<to id="to1" uri="file:///inputDir/"/>
</route>
</routes>
{noformat}
I don't know if it's a bug or not, but in the documentation ([https://camel.apache.org/manual/latest/Endpoint-dsl.html)] the example does not specify to call "getURI()"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)