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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • NiFi Stateless
    • 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

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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