You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joseph Gresock (JIRA)" <ji...@apache.org> on 2017/01/04 17:35:58 UTC

[jira] [Updated] (NIFI-3278) TextLineDemarcator fails when InputStream ends with '\r' and its length equals buffer length

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

Joseph Gresock updated NIFI-3278:
---------------------------------
    Summary: TextLineDemarcator fails when InputStream ends with '\r' and its length equals buffer length  (was: TextLineDemarcator fails when InputStream ends with '\r' and it's length equals buffer length)

> TextLineDemarcator fails when InputStream ends with '\r' and its length equals buffer length
> --------------------------------------------------------------------------------------------
>
>                 Key: NIFI-3278
>                 URL: https://issues.apache.org/jira/browse/NIFI-3278
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Oleg Zhurakousky
>            Assignee: Oleg Zhurakousky
>            Priority: Critical
>             Fix For: 1.2.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)