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:36:00 UTC

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

     [ https://issues.apache.org/jira/browse/CAMEL-15611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aurélien Pupier updated CAMEL-15611:
------------------------------------
    Description: 
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-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_

  was:
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_


> 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
>            Priority: Major
>
> 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-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_



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