Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8542

The FlowFile content returned by Stateless TriggerResult.readContent may contain too much data

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: NiFi Stateless
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              markap14 Mark Payne
              Reporter:
              markap14 Mark Payne

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m

                  Issue deployment