Jackson 2.10.x fails to deserialize xsi:nil with multiple child elements
See original GitHub issueThis XML:
<Silly xmlns:a="http://www.w3.org/2001/XMLSchema-instance" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:Hey i:nil="true"/>
<a:Ho>to</a:Ho>
</Silly>
… fails to properly deserialize in Jackson 2.10.x. Both Hey
and Ho
are null, while in 2.9.9 they were ""
and "to"
.
See test project at https://github.com/henrik242/jackson-xml-problem/tree/jackson-xml-nil-problem
First reported in https://github.com/FasterXML/jackson-dataformat-xml/issues/354#issuecomment-566041199 and https://github.com/FasterXML/jackson-dataformat-xml/issues/358#issuecomment-566048921
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Jackson deserialize to list of child elements - Stack Overflow
If you'd like to deserialize into List<Row> directly , you can just specify the desired valueType in xmlMapper#readValue
Read more >Jackson 2.10 features - cowtowncoder - Medium
Resolve the growing problem of “endless CVE patches”, a stream of fixes for reported CVEs related to “Polymorphic Deserialization” problem ( ...
Read more >Security update for jackson-databind, jackson-dataformats ...
jackson -databind - update from version 2.10.5.1 to version 2.13.0: + '@JsonValue' with integer for enum does not deserialize correctly + ...
Read more >jackson-module-scala - Scaladex
addModule(DefaultScalaModule) .build() // versions before 2.10 (also support for later 2.x but not 3.0) val mapper = new ObjectMapper() mapper.
Read more >SUSE alert SUSE-SU-2022:1678-1 (jackson-databind ...
(bsc#1182481) Non security fixes: jackson-annotations - update from version 2.10.2 to version 2.13.0: + Build with source/target levels 8 + ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
2.10.2 now released, I hope things work as expected. Also, reports for other edge cases (if any) would be welcome.
https://github.com/FasterXML/jackson-module-kotlin/issues/396 might be related to this (jackson 2.12.0-rc1 regression)