NIFI-3522: When creating a clone of a FlowFile, ensure that we properly set the 'updated attributes' on the RepositoryRecord to all attributes on the FlowFile itself, the same way we do when calling create(FlowFile)

This closes #1532
This commit is contained in:
Mark Payne 2017-02-22 17:02:56 -05:00 committed by Oleg Zhurakousky
parent cefc02c5fb
commit 64379d2007
1 changed files with 1 additions and 1 deletions

View File

@ -1631,7 +1631,7 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
context.getContentRepository().incrementClaimaintCount(claim); context.getContentRepository().incrementClaimaintCount(claim);
} }
final StandardRepositoryRecord record = new StandardRepositoryRecord(null); final StandardRepositoryRecord record = new StandardRepositoryRecord(null);
record.setWorking(clone, Collections.<String, String> emptyMap()); record.setWorking(clone, clone.getAttributes());
records.put(clone, record); records.put(clone, record);
if (offset == 0L && size == example.getSize()) { if (offset == 0L && size == example.getSize()) {