You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (Jira)" <ji...@apache.org> on 2021/05/13 15:33:00 UTC

[jira] [Updated] (NIFI-8542) The FlowFile content returned by Stateless TriggerResult.readContent may contain too much data

     [ https://issues.apache.org/jira/browse/NIFI-8542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Payne updated NIFI-8542:
-----------------------------
    Status: Patch Available  (was: Open)

> The FlowFile content returned by Stateless TriggerResult.readContent may contain too much data
> ----------------------------------------------------------------------------------------------
>
>                 Key: NIFI-8542
>                 URL: https://issues.apache.org/jira/browse/NIFI-8542
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: NiFi Stateless
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.14.0
>
>
> When using Stateless NiFi, the TriggerResult has a readContent(FlowFile) method that should return the contents of the FlowFile. However, if a FlowFile was created using {{ProcessSession.clone(FlowFile flowFile, long offset, long size)}} then the contents of the entire content claim are still returned, not just the contents between offset & offset + size. This means that any stateless flow where the output is from SplitText or SegmentContent will return too much content.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)