[
https://issues.apache.org/jira/browse/NIFI-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15116730#comment-15116730
]
Richard Miskin commented on NIFI-1421:
--------------------------------------
[~joewitt] I've not been able to reproduce, but from the stack trace it looks
like the order of the namespace declarations has been flipped. ascii 102 and
103 being 'f' and 'g' and the namespaces being foo and goo.
Best guess is that the code is non-deterministic due to iterating over the keys
to a HashMap. I've just tried and switching prefixMap to either a LinkedHashMap
or a TreeMap on line 199 of SplitXML keeps the test passing locally and might
fix the problem on Travis.
> SplitXML produces invalid XML for source containing namespace declarations
> --------------------------------------------------------------------------
>
> Key: NIFI-1421
> URL: https://issues.apache.org/jira/browse/NIFI-1421
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 0.4.1
> Reporter: Richard Miskin
> Assignee: Joseph Witt
> Fix For: 0.5.0
>
> Attachments:
> 0001-NIFI-1421-This-closes-184.-Added-content-assertion-t.patch
>
>
> The SplitXML processor ignores namespace declarations which means the
> generated XML is invalid for examples like this:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <bundle xmlns:foo="http://namespace/1">
> <node>
> <foo:subNode1 attribute="d&b">
> <value>Hello & Goodbye</value>
> </foo:subNode1>
> <foo:subNode2 xmlns:goo="http://namespace/2">
> <goo:value>World</goo:value>
> </foo:subNode2>
> </node>
> </bundle>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)