[
https://issues.apache.org/jira/browse/NIFI-6242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17259889#comment-17259889
]
ASF subversion and git services commented on NIFI-6242:
-------------------------------------------------------
Commit 7214dc0f853e960a3803ce07d6c49237af747488 in nifi's branch
refs/heads/main from tlsmith
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=7214dc0 ]
NIFI-6242 PutFileTransfer generating incorrect provenance event
> 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 Rhys DeVries
> Assignee: Tim Smith
> Priority: Minor
> Fix For: 1.13.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)