mirror of https://github.com/apache/nifi.git
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:
parent
cefc02c5fb
commit
64379d2007
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue