fix(mdx-web): retain Jackson JSON converter for actuator serialization - #390
Open
gerfboy wants to merge 1 commit into
Open
fix(mdx-web): retain Jackson JSON converter for actuator serialization#390gerfboy wants to merge 1 commit into
gerfboy wants to merge 1 commit into
Conversation
MdxOnDemandSerializationWebMvcConfigurer strips every message converter
not in its allowlist. Under Spring Boot 4 the actuator health endpoint
returns SystemHealthDescriptor, which is serialized with Jackson; with
the Jackson JSON converter removed there is no writable converter for it,
so /actuator/health fails with HttpMessageNotWritableException ("No
converter for [SystemHealthDescriptor] with preset Content-Type 'null'")
and Kubernetes health probes never pass.
Add JacksonJsonHttpMessageConverter to the allowlist so actuator (and any
non-MDX JSON) endpoints can serialize, while MDX endpoints continue to
use Gson.
gerfboy
requested review from
SandhyaBhatia,
mattnichols,
meotch,
stevecl5 and
tessstoddard
as code owners
September 9, 2026 19:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Under Spring Boot 4.1.0, path connectors on
mdx-webfail their Kubernetes health probes./actuator/healththrows:MdxOnDemandSerializationWebMvcConfigurer.extendMessageConvertersremoves every HTTP message converter not in its allowlist (CONVERT_CLASSES: Gson, String, ByteArray) and appends a custom XML converter. Under Spring Boot 4 the actuator health payload (SystemHealthDescriptor) is serialized with Jackson, so with the Jackson JSON converter stripped there is no writable converter for it and the endpoint fails. This is a regression from the Boot 4 migration.This change adds
JacksonJsonHttpMessageConverterto the allowlist so actuator (and any non-MDX JSON) endpoints can serialize, while MDX endpoints continue to use Gson.Jira: MC-15733
Public API Additions/Changes
None. Internal Spring MVC message-converter configuration only.
Downstream Consumer Impact
Bug fix. Restores serialization of Spring Boot actuator endpoints (e.g.
/actuator/health), which unblocks Kubernetes health probes for connectors on Boot 4. MDX endpoints are unaffected — they continue to serialize via Gson. No behavior change for existing MDX request/response paths.How Has This Been Tested?
./gradlew :mdx-web:check(JDK 21) — build, checkstyle, spotbugs, and tests passMdxOnDemandSerializationWebMvcConfigurerTestto assert the Jackson JSON converter survives converter filtering (retained alongside Gson/String/ByteArray, custom XML converter still appended last)Checklist: