[ https://issues.apache.org/jira/browse/CAMEL-13795?focusedWorklogId=284272&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-284272 ]
ASF GitHub Bot logged work on CAMEL-13795: ------------------------------------------ Author: ASF GitHub Bot Created on: 29/Jul/19 13:20 Start Date: 29/Jul/19 13:20 Worklog Time Spent: 10m Work Description: oscerd commented on pull request #3069: CAMEL-13795: Fixing the issue of already declared namespaces within the child URL: https://github.com/apache/camel/pull/3069 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 284272) Time Spent: 0.5h (was: 20m) > TokenXMLExpressionIterator with inheritNamespaceToken creates duplicate > default namespace definition > ---------------------------------------------------------------------------------------------------- > > Key: CAMEL-13795 > URL: https://issues.apache.org/jira/browse/CAMEL-13795 > Project: Camel > Issue Type: Bug > Components: came-core > Affects Versions: 2.21.5, 2.23.3, 2.22.5, 2.24.1, 3.0.0.M4 > Reporter: Christian Pieczewski > Priority: Minor > Time Spent: 0.5h > Remaining Estimate: 0h > > If a sub-item also contains the default namespace definition the splitter > will duplicate it. > > {code:java|title=route definition} > from("file:target/pair?initialDelay=0&delay=10") > // split the order child tags, and inherit namespaces > from the orders root tag > .split().tokenizeXML("order", "orders") > .to("mock:split"); > {code} > > > {code:xml|title=input} > <orders xmlns="http:acme.com"> > <order xmlns="http:acme.com" id="1">Camel in Action</order> > <order id="2">ActiveMQ in Action</order> > <order id="3">DSL in Action</order> > </orders>" > {code} > {code:xml|title=output[1]} > <order xmlns="http:acme.com" id="1" xmlns="http:acme.com">Camel in > Action</order> > {code} > {code:xml|title=expected[1]} > <order xmlns="http:acme.com" id="1">Camel in Action</order> > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016)