[
https://issues.apache.org/jira/browse/NIFI-5728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16672776#comment-16672776
]
ASF GitHub Bot commented on NIFI-5728:
--------------------------------------
Github user pvillard31 commented on the issue:
https://github.com/apache/nifi/pull/3098
+1, merging to master
> Inconsistent behavior in XMLRecordSetWriter for Root Record Tag
> ---------------------------------------------------------------
>
> Key: NIFI-5728
> URL: https://issues.apache.org/jira/browse/NIFI-5728
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.7.1
> Reporter: Ed Berezitsky
> Assignee: Ed Berezitsky
> Priority: Major
>
> In XMLRecordSetWriter:
> When used with "Use Schema Text" and "Name of Record Tag" is empty (so record
> name should be used to wrapping XML tag) - works correctly.
> When used with Schema Registry and "Name of Record Tag" is empty - it doesn't
> write record name, but uses schema name instead. I believe this inconsistency
> is coming from the fact that when schema in a writer defined by "Use Schema
> Text" - it doesn't have a name and then name is taken from a record. But when
> it comes from registry - it simply uses schema idetifier:
> {code:java}
> recordSchema.getIdentifier().getName();
> {code}
> IMO root record name should be used in this case instead of schema name.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)