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

TextLineDemarcator fails when InputStream ends with '\r' and its length equals buffer length

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      This is really an edge case, but there is a bug in isEol() operation which attempts to read the next byte after call to fill() even though that may be the end of the stream. And it only happens IF the current character is '\r' and the length of the InputStream is the length of the buffer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ozhurakousky Oleg Zhurakousky
                Reporter:
                ozhurakousky Oleg Zhurakousky
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: