Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out why serialization of polymorphic lists used to work in Jackson and don't anymore #543

Closed
metacosm opened this issue Mar 28, 2023 · 3 comments
Assignees

Comments

@metacosm
Copy link
Member

Cloning a resource which contains a polymorphic list of items used to work in 2.0.0.Beta5 but doesn't anymore in more recent versions and, this, despite https://stackoverflow.com/questions/34193177/why-does-jackson-polymorphic-serialization-not-work-in-lists#34194367 which seems to indicate that it shouldn't have worked in the first place.

@metacosm
Copy link
Member Author

As indicated in the linked issue, what happened is that JOSDK switched at some point from using its own Jackson mapper, which was actually handling the polymorphic list correctly (because the serialisation configuration was properly set up for it to work), to using Fabric8's own mapper, which is customized with a module that interferes with proper serialisation of polymorphic collections in some situations.

@metacosm
Copy link
Member Author

metacosm commented May 5, 2023

This should be fixed when we can upgrade to Fabric8 Client 6.6.0.

@metacosm
Copy link
Member Author

This has been fixed in 6.1.0.

goldmann pushed a commit to agogoscd/agogos that referenced this issue Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant