Skip to content

Commit

Permalink
NIFI-3522: When creating a clone of a FlowFile, ensure that we proper…
Browse files Browse the repository at this point in the history
…ly 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 apache#1532
  • Loading branch information
markap14 authored and olegz committed Feb 22, 2017
1 parent cefc02c commit 64379d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ public FlowFile clone(final FlowFile example, final long offset, final long size
context.getContentRepository().incrementClaimaintCount(claim);
}
final StandardRepositoryRecord record = new StandardRepositoryRecord(null);
record.setWorking(clone, Collections.<String, String> emptyMap());
record.setWorking(clone, clone.getAttributes());
records.put(clone, record);

if (offset == 0L && size == example.getSize()) {
Expand Down

0 comments on commit 64379d2

Please sign in to comment.