InvalidDefinitionException "No fallback setter/field defined for creator property" when deserializing JSON with duplicated property to single-property Record #4690
Labels
has-failing-test
Indicates that there exists a test case (under `failing/`) to reproduce the issue
Record
Issue related to JDK17 java.lang.Record support
Search before asking
Describe the bug
Deserialzing a JSON with a duplicated property fails for a Java Record with a single property.
Version Information
2.17.2
Reproduction
Produces the following error:
Expected behavior
Deserialization works, or a proper exception describing the problem (e.g. "duplicate property") is thrown.
Additional context
Workaround: Add a 2nd dummy property to the Java Record
Ofc the duplicate property in the JSON is not the default. It was detected during a penetration test when testing for parameter pollution vulnerabilities.
The text was updated successfully, but these errors were encountered: