You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurélien Pupier (Jira)" <ji...@apache.org> on 2020/10/01 14:30:00 UTC

[jira] [Created] (CAMEL-15611) Support prefix for camel namespace in XmlRouteParser

Aurélien Pupier created CAMEL-15611:
---------------------------------------

             Summary: Support prefix for camel namespace in XmlRouteParser
                 Key: CAMEL-15611
                 URL: https://issues.apache.org/jira/browse/CAMEL-15611
             Project: Camel
          Issue Type: Improvement
          Components: tooling
    Affects Versions: 3.5.0
            Reporter: Aurélien Pupier


with this kind of xml route:

{noformat}
<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>
{noformat}

the _XmlRouteParser.parseXmlRouteTree_ is throwing an NPE due to the combination of [CAMEL-15509] 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_



--
This message was sent by Atlassian Jira
(v8.3.4#803005)