Skip to content

Jersey does not use the endpoint ObjectMapper when Actuator is running on a separate port - #51937

Merged
snicoll merged 2 commits into
spring-projects:4.0.xfrom
khopland:jersey-jackson2-management-mapper-fix
Oct 6, 2026
Merged

snicoll merged 2 commits into
spring-projects:4.0.xfrom
khopland:jersey-jackson2-management-mapper-fix

Conversation

@khopland

@khopland khopland commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Register the Actuator Jackson 2 mapper through ManagementContextResourceConfigCustomizer so Jersey applies it when management.server.port is configured.

Found this bug when making the pr #51936, but think it should be in a seperate PR.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue that has not yet been triaged. Contributions will not be accepted. label Oct 3, 2026
@wilkinsona wilkinsona changed the title Fix Jersey’s Jackson 2 endpoint mapper on a separate management port Jersey does not use the endpoint ObjectMapper when Actuator is running on a separate port Oct 5, 2026
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue that has not yet been triaged. Contributions will not be accepted. labels Oct 5, 2026
@wilkinsona wilkinsona added this to the 4.0.x milestone Oct 5, 2026
@snicoll snicoll self-assigned this Oct 6, 2026
@snicoll
snicoll force-pushed the jersey-jackson2-management-mapper-fix branch from 05dcaa7 to 372bd7c Compare October 6, 2026 09:05
@snicoll
snicoll changed the base branch from main to 4.0.x October 6, 2026 09:05
@snicoll snicoll modified the milestones: 4.0.x, 4.0.9 Oct 6, 2026
@snicoll
snicoll merged commit 3d7e616 into spring-projects:4.0.x Oct 6, 2026
1 check failed
@khopland
khopland deleted the jersey-jackson2-management-mapper-fix branch October 6, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants