You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Ryan Skraba (Jira)" <ji...@apache.org> on 2023/06/14 16:43:00 UTC

[jira] [Resolved] (AVRO-3560) avro ignores input after end of avsc json

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

Ryan Skraba resolved AVRO-3560.
-------------------------------
    Resolution: Fixed

Cherry-picked to [branch-1.11|https://github.com/apache/avro/commit/41b248100774e145262cbee2122384f69f93b8c2].

It would be amazing if you could watch the [mailing list|https://lists.apache.org/list?dev@avro.apache.org] for the release candidate and validate it!

> 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
>             Fix For: 1.12.0, 1.11.2
>
>          Time Spent: 2h 20m
>  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)