Skip to content

Deserialization with XmlMapper and DeserializationFeature.UNWRAP_ROOT_VALUE no longer works in 2.12 #485

@ionel-sirbu-crunch

Description

@ionel-sirbu-crunch

I've recently updated a project at work to Spring-boot 2.5.2 & one of the tests started failing. As it turns out, the root cause lies in the deserialisation of XML data.
We use the root unwrapping feature & have the data model class annotated with @JsonRootName.

I've created a very simple project to give you an example of our usage here.

Old, working version: 2.11.4
New, non-working version: 2.12.3

Any advice is much appreciated.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions