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

Support prefix for camel namespace in XmlRouteParser

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.6.0
    • tooling
    • None
    • Unknown

    Description

      with this kind of xml route:

      <camel:camelContext id="camel" xmlns:camel="http://camel.apache.org/schema/spring"> 
         <camel:route id="a route"> 
           <camel:from uri="direct:cafe"/>
             <camel:to uri="direct:drink"/> 
          </camel:route>
      </camel:camelContext>
      

      the XmlRouteParser.parseXmlRouteTree is throwing an NPE due to the combination of CAMEL-15610 and that there is no support of prefix namespaces.

      With CAMEL-15509 fixed, it will return an empty list.

      It is expected to have 2 elements in the list, one for the from and one for from

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            apupier Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: