[ https://issues.apache.org/jira/browse/NIFI-5728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard resolved NIFI-5728. ---------------------------------- Resolution: Fixed Fix Version/s: 1.9.0 > 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 > Fix For: 1.9.0 > > > 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)