[ https://issues.apache.org/jira/browse/NIFI-5728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16672779#comment-16672779 ]
ASF subversion and git services commented on NIFI-5728: ------------------------------------------------------- Commit 2812fe60a2ed486b1a6cb80916e764aa9af10f9b in nifi's branch refs/heads/master from Ed B [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=2812fe6 ] NIFI-5728 - XML Writer to populate record tag name properly Signed-off-by: Pierre Villard <pierre.villard...@gmail.com> This closes #3098. > 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)