Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20674

camel-core - XML DSL should trim endpoint uris

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • None
    • 4.6.0
    • camel-core
    • None
    • Unknown

    Description

      If you try to run this

      <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>
      

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: