camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-10817) dumpModelAsXml can return invalid XML namespace xmlns:xmlns
Date Mon, 13 Feb 2017 09:06:42 GMT

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

Claus Ibsen resolved CAMEL-10817.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.19.0
                   2.18.3

> dumpModelAsXml can return invalid XML namespace xmlns:xmlns
> -----------------------------------------------------------
>
>                 Key: CAMEL-10817
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10817
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.18.0
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Minor
>             Fix For: 2.18.3, 2.19.0
>
>
> Seems I introduced a [bug|https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/model/ModelHelper.java#L99]
when implementing CAMEL-10509.
> If we're processing a namespace prefix of 'xmlns' then obviously we should not prefix
it with the same value. But currently this is allowed and a namespace prefix of 'xmlns:xmlns'
is added to the {{<routes>}} element. This can mean that the output from {{ModelHelper.dumpModelAsXml}}
is invalid.
> However, I can only reproduce the problem on Karaf where the routes use xpath expressions.
Some how with other platforms & scenarios the 'xmlns:xmlns' value is being ignored and
never makes it into the {{dumpModelAsXml}} output.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message