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

Joseph Witt reopened NIFI-1421:
-------------------------------
      Assignee: Joseph Witt  (was: Mark Payne)

Travis-CI complaining of a test failure 
{quote}
Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec <<< 
FAILURE! - in org.apache.nifi.processors.standard.TestSplitXml
testNamespaceDeclarations(org.apache.nifi.processors.standard.TestSplitXml)  
Time elapsed: 0.011 sec  <<< FAILURE!
java.lang.AssertionError: FlowFile content differs from input at byte 55 with 
input having value 102 and FlowFile having value 103
        at org.junit.Assert.fail(Assert.java:88)
        at 
org.apache.nifi.util.MockFlowFile.assertContentEquals(MockFlowFile.java:253)
        at 
org.apache.nifi.util.MockFlowFile.assertContentEquals(MockFlowFile.java:205)
        at 
org.apache.nifi.processors.standard.TestSplitXml.testNamespaceDeclarations(TestSplitXml.java:116)

{quote}

> 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&amp;b">
>             <value>Hello &amp; 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)

Reply via email to