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

Support prefix for camel namespace in XmlRouteParser

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.6.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: