[ 
https://issues.apache.org/jira/browse/NIFI-11576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18059108#comment-18059108
 ] 

Daniel Stieglitz commented on NIFI-11576:
-----------------------------------------

I was able to reproduce the issue when using the ConvertRecord processor 
configured with an XMLReader which inferred the schema and and configured with 
a JsonRecordSetWriter to output the record. I am not sure what the reporter 
intended for when attaching the AVSC schema.

> XMLReader not handling namespaced attributes correctly (xmlns:foo="")
> ---------------------------------------------------------------------
>
>                 Key: NIFI-11576
>                 URL: https://issues.apache.org/jira/browse/NIFI-11576
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: crissaegrim
>            Assignee: Daniel Stieglitz
>            Priority: Major
>
> Supposing we have
> {code:java}
> <wd:report_data xmlns:wd="">
>     <wd:record>
>         <wd:foo wd:bar="bar content">foo content</wd:foo>
>     </wd:record>
> </wd:report_data> {code}
> `XMLReader` recognizes `foo content` and extracts it correctly but is failing 
> to pick up `bar content`.
> Workaround is to remove the NS for attr's:  `<wd:foo bar="bar content">foo 
> content</wd:foo>`
> More details on how to repro in comments.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to