You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Radai Rosenblatt (Jira)" <ji...@apache.org> on 2022/06/30 20:57:00 UTC

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

Radai Rosenblatt created AVRO-3560:
--------------------------------------

             Summary: 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


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)