Skip to content

fix: make JSONB value types Serializable for Ehcache L2 cache (backport #24052 → patch/2.43.0.1)#24177

Merged
netroms merged 2 commits into
patch/2.43.0.1from
hotfix/ehcache-serializable-jsonb-types-2.43.0.1
Jun 10, 2026
Merged

fix: make JSONB value types Serializable for Ehcache L2 cache (backport #24052 → patch/2.43.0.1)#24177
netroms merged 2 commits into
patch/2.43.0.1from
hotfix/ehcache-serializable-jsonb-types-2.43.0.1

Conversation

@netroms

@netroms netroms commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Backports #24052 to the 2.43.0.1 patch/hotfix line.

Makes the JSONB value types RenderingObject and ApiTokenAttribute implement Serializable so they survive Ehcache 3.12's SerializingCopier in the L2 second-level cache — a missing Serializable throws NotSerializableException at runtime (the ApiTokenAttribute / PAT regression). ApiToken is L2-cached (<cache usage="read-write"/>) on this line, so the patch line is exposed.

Also adds CachedEntityJsonbSerializableTest, a guard test that walks the live Hibernate metamodel so any JSONB value type added to an L2-cached entity in future is checked automatically.

The patch/2.43.0.1 line was cut before the fix landed on the dev lines, so it had the same gap as patch/2.42.5.1 (fixed by #24175). Clean GPG-signed cherry-pick of 578769ccf39 (squash of #24052) onto patch/2.43.0.1. Compiles + test-compiles locally on JDK 17.

AI Assisted. Backport of #24052.

@netroms
netroms enabled auto-merge (squash) June 9, 2026 21:41
@netroms
netroms merged commit 7348a74 into patch/2.43.0.1 Jun 10, 2026
13 checks passed
@netroms
netroms deleted the hotfix/ehcache-serializable-jsonb-types-2.43.0.1 branch June 10, 2026 05:38
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

Successfully merging this pull request may close these issues.

4 participants