Nathan Lincoln created KAFKA-12800:
--------------------------------------

             Summary: Configure jackson to to reject trailing input in the 
generator
                 Key: KAFKA-12800
                 URL: https://issues.apache.org/jira/browse/KAFKA-12800
             Project: Kafka
          Issue Type: Task
          Components: generator
            Reporter: Nathan Lincoln


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|https://fasterxml.github.io/jackson-databind/javadoc/2.9/com/fasterxml/jackson/databind/DeserializationFeature.html#FAIL_ON_TRAILING_TOKENS]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to