Claus Ibsen created CAMEL-20674:
-----------------------------------

             Summary: 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
             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
                        &amp;type=POLL
                        &amp;repeatCount=5
                        &amp;timeout=1000
                        &amp;delay=10000
                        &amp;timeUnit=MILLISECONDS
                        &amp;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)

Reply via email to