[
https://issues.apache.org/jira/browse/CAMEL-16920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume LECROC updated CAMEL-16920:
-------------------------------------
Description:
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("/outputDir/").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:///outputDir/"/>
</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()"
was:
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()"
> 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
> Priority: Minor
>
> 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("/outputDir/").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:///outputDir/"/>
> </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)