Brandon DeVries created NIFI-6242:
-------------------------------------
Summary: PutFileTransfer generating incorrect provenance events
Key: NIFI-6242
URL: https://issues.apache.org/jira/browse/NIFI-6242
Project: Apache NiFi
Issue Type: Bug
Affects Versions: 1.9.2
Reporter: Brandon DeVries
PutFileTransfer transfers a (configurable size) batch of FlowFiles. However,
the provenance SEND event generated [1] uses the hostname evaluated from the
first FlowFile of the batch. If the hostname is a hardcoded string, there's no
issue... but if the hostname uses Expression Language, the generated provenance
events will be incorrect (and very confusing).
[1]
[https://github.com/apache/nifi/blob/f60585a9b6df6b3b28be1eb80a0a60deac6c0493/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFileTransfer.java#L146-L147]
[2]
[https://github.com/apache/nifi/blob/f60585a9b6df6b3b28be1eb80a0a60deac6c0493/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFileTransfer.java#L97]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)