Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-12800

Configure jackson to to reject trailing input in the generator

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0
    • generator
    • None

    Description

      The ObjectMapper instance that parses the schema JSONs will successfully parse, even if there is trailing input at the end of the file. This the default behavior on Jackson, but JSON parsers in other languages may reject these files. 

      The only instance of this should have been fixed with KAFKA-12794, and configuring jackson to reject this in the future is simple - just enable FAIL_ON_TRAILING_TOKENS

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              NLincoln Nathan Lincoln
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: