[
https://issues.apache.org/jira/browse/AVRO-3560?focusedWorklogId=786980&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-786980
]
ASF GitHub Bot logged work on AVRO-3560:
----------------------------------------
Author: ASF GitHub Bot
Created on: 01/Jul/22 08:06
Start Date: 01/Jul/22 08:06
Worklog Time Spent: 10m
Work Description: radai-rosenblatt commented on PR #1748:
URL: https://github.com/apache/avro/pull/1748#issuecomment-1172062051
that was an excellent catch @KalleOlaviNiemitalo. i've added a test for File
input and adapted the code to work for all cases of dangling input.
except for the case of a buffer full of whitespace with more content hiding
in the underlying input (either a reader or an inputstream). I'm ok with not
solving for that case as I expect it to be rare (and the code changes required
more invasive)
Issue Time Tracking
-------------------
Worklog Id: (was: 786980)
Time Spent: 1h 10m (was: 1h)
> avro ignores input after end of avsc json
> -----------------------------------------
>
> Key: AVRO-3560
> URL: https://issues.apache.org/jira/browse/AVRO-3560
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.11.0
> Reporter: Radai Rosenblatt
> Assignee: Radai Rosenblatt
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> try the following unit test:
> {code}
> @Test
> public void littleBobbySchemas() throws Exception {
> Schema.Parser parser = new Schema.Parser();
> parser.setValidate(true);
> parser.setValidateDefaults(true);
> Schema schema = parser.parse("{\"type\": \"string\"}; DROP TABLE
> STUDENTS");
> Assert.assertNotNull(schema);
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)