Skip to content

OpenFeign client cannot correctly deserialize from stable page representation #1144

Closed
@fenuks

Description

@fenuks

Describe the bug
I use new stable page representation format enabled with @EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO).
When I try to download paged response from controller via feign client, page metadata isn't correctly parsed. Total elements number always equals number of elements in current page content (page content is parsed correctly). It seems that PageJacksonModule expects page metadata in the old format.

I'm using Spring Cloud v2024.0.0.

Sample
Sample project to reproduce this problem lives at
https://github.com/exempla/sb3_stable_page_feign_deserialization_problem. Run
mvn test to see the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions