[
https://issues.apache.org/jira/browse/NIFI-1701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15219502#comment-15219502
]
Joseph Witt commented on NIFI-1701:
-----------------------------------
[~ozhurakousky] Have attached a patch which applies on top of your PR. It
fixes the fact that when reading a byte from the input stream what is returned
is an int and the value when -1 means end of stream whereas all other values
mean there is a byte there and its value is represented between 0 and 255. The
logic we had basically immediately cast to a byte then tested for -1. As a
result if the byte stream itself contained a byte representing -1 we would
improperly block/stop the stream. Created a unit test to show this as broken
and then fixed.
> StreamScanner in PutKafka doesn't handle byte values < -1 properly
> ------------------------------------------------------------------
>
> Key: NIFI-1701
> URL: https://issues.apache.org/jira/browse/NIFI-1701
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Oleg Zhurakousky
> Assignee: Oleg Zhurakousky
> Priority: Critical
> Fix For: 0.7.0
>
> Attachments:
> 0001-NIFI-1701-patch-against-pr-314-which-corrects-byte-v.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)