[
https://issues.apache.org/jira/browse/CAMEL-20674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837136#comment-17837136
]
Claus Ibsen commented on CAMEL-20674:
-------------------------------------
This is not possible with jaxb xml parser, and for xml-io, we would need to add
trimming in the generated parser.
We could also have some util method in the model classes for setUri that will
do this by removing the whitespaces when using XML DSL
> camel-core - XML DSL should trim endpoint uris
> ----------------------------------------------
>
> Key: CAMEL-20674
> URL: https://issues.apache.org/jira/browse/CAMEL-20674
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.6.0
>
>
> If you try to run this
> {code}
> <route id="poll-for-sn-and-up-time">
> <from uri="snmp:111.222.333.444:161?protocol=udp
> &type=POLL
> &repeatCount=5
> &timeout=1000
> &delay=10000
> &timeUnit=MILLISECONDS
> &oids= 1.3.6.1.2.1.43.5.1.1.17.1,
> 1.3.6.1.2.1.1.3.0"/>
> <log message="POLL ${headers} ${body}"/>
> <to uri="mock:polling"/>
> </route>
> {code}
> via camel run thefile.xml
> then it fails due to trailing whitespace from the break-down of the uri.
> We should trim the lines for endpoint uris
--
This message was sent by Atlassian Jira
(v8.20.10#820010)