[
https://issues.apache.org/jira/browse/JOHNZON-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thiago Veronezi updated JOHNZON-18:
-----------------------------------
Attachment:
JsonStreamParserImpl_not_filling_up_buffer_consistently_testcase_fix.patch
JsonStreamParserImpl_not_filling_up_buffer_consistently_testcase.patch
Done,
[^JsonStreamParserImpl_not_filling_up_buffer_consistently_testcase.patch]
reproduces the issue. Basically, the stream is not completely loaded in one
single shot.
[^JsonStreamParserImpl_not_filling_up_buffer_consistently_testcase_fix.patch]
makes it possible to load the rest of the bytes.
Thanks a lot for the code-review!
[]s,
Thiago.
> JsonStreamParserImpl not filling up buffer consistently
> -------------------------------------------------------
>
> Key: JOHNZON-18
> URL: https://issues.apache.org/jira/browse/JOHNZON-18
> Project: Johnzon
> Issue Type: Bug
> Components: Core
> Reporter: Thiago Veronezi
> Assignee: Hendrik Saly
> Fix For: 0.2-incubating
>
> Attachments:
> JsonStreamParserImpl_not_filling_up_buffer_consistently.patch,
> JsonStreamParserImpl_not_filling_up_buffer_consistently_2.patch,
> JsonStreamParserImpl_not_filling_up_buffer_consistently_3.patch,
> JsonStreamParserImpl_not_filling_up_buffer_consistently_4.patch,
> JsonStreamParserImpl_not_filling_up_buffer_consistently_testcase.patch,
> JsonStreamParserImpl_not_filling_up_buffer_consistently_testcase_fix.patch
>
>
> This is related to the issue discussed
> [here|https://issues.apache.org/jira/browse/JOHNZON-17]. Basically, the
> "read" method might not read all the bytes at once. We need to make sure to
> read at least one until we reach the value "-1".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)