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

Exception on HAL serialization with object mapper configured to sort map entries by keys #1517

Closed
odrotbohm opened this issue Apr 16, 2021 · 0 comments
Assignees
Labels
in: mediatypes Media type related functionality type: bug
Milestone

Comments

@odrotbohm
Copy link
Member

Backport of #1515.

@odrotbohm odrotbohm self-assigned this Apr 16, 2021
@odrotbohm odrotbohm added in: mediatypes Media type related functionality type: bug labels Apr 16, 2021
@odrotbohm odrotbohm added this to the 1.3.1 milestone Apr 16, 2021
odrotbohm added a commit that referenced this issue Apr 16, 2021
…ing is enabled.

Prior to this commit, the map of links to be rendered would key by LinkRelation. Unfortunately, Jackson requires `Map` keys to implement `Comparable` in case `SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS` is enabled. We now use the link relation's value as key right aways as Strings are comparable out of the box.

Switched to use Spring's MultiValueMap to avoid having to deal with the value list initialization ourselves.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: mediatypes Media type related functionality type: bug
Projects
None yet
Development

No branches or pull requests

1 participant