Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3560

avro ignores input after end of avsc json

    XMLWordPrintableJSON

Details

    Description

      try the following unit test:

      @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);
      }
      

      Attachments

        Issue Links

          Activity

            People

              radai Radai Rosenblatt
              radai Radai Rosenblatt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h