question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jackson 2.10.x fails to deserialize xsi:nil with multiple child elements

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cowtowncodercommented, Jan 5, 2020

2.10.2 now released, I hope things work as expected. Also, reports for other edge cases (if any) would be welcome.

0reactions
henrik242commented, Nov 26, 2020

https://github.com/FasterXML/jackson-module-kotlin/issues/396 might be related to this (jackson 2.12.0-rc1 regression)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found