Skip to content

fix(plugins): remove @JsonTypeInfo from RulePluginInterface - #21676

Merged
maxwo merged 1 commit into
developfrom
fix/policy-rule-plugin-deserializer
Oct 23, 2026
Merged

maxwo merged 1 commit into
developfrom
fix/policy-rule-plugin-deserializer

Conversation

@maxwo

@maxwo maxwo commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Companion to https://github.com/kestra-io/kestra-ee/pull/11842 that registers Rule with PluginDeserializer. Both should land together.

Test plan

  • Verified with the EE companion PR: RuleJacksonModuleProviderTest fails (2/3) without this change and passes with it
  • 217 core-ee policy / rule / apps / migration tests pass against this branch

🤖 Generated with Claude Code

RulePluginInterface carried @JsonTypeInfo(Id.CLASS), which makes Jackson resolve a
policy rule's `type:` via Class.forName on the raw user string and silently bypasses
any PluginDeserializer registered through JacksonMapperModuleProvider.

Same fix as AppBlockInterface in #20443; EE companion PR registers Rule with
PluginDeserializer for kestra-io/kestra-ee#10555.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor
🐋 Docker image
ghcr.io/kestra-io/kestra-pr:21676
docker run --pull=always --rm -it -p 8080:8080 --user=root -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp ghcr.io/kestra-io/kestra-pr:21676 server local

@maxwo
maxwo marked this pull request as ready for review October 22, 2026 09:33
@maxwo
maxwo merged commit 84bbe76 into develop Oct 23, 2026
@maxwo
maxwo deleted the fix/policy-rule-plugin-deserializer branch October 23, 2026 10:14
@github-project-automation github-project-automation Bot moved this from To review to Done in Pull Requests Oct 23, 2026
maxwo added a commit that referenced this pull request Oct 23, 2026
…lePluginInterface and AppBlockInterface (#21762)

* fix(plugins): add a Jackson module SPI for plugin interfaces declared outside core

Backport of the JacksonMapperModuleProvider part of #20443, without its
AppBlockInterface change: EE releases/v2.0.x registers no Block deserializer.

(cherry picked from commit 3be7b36)

* fix(plugins): remove @JsonTypeInfo from RulePluginInterface (#21676)

RulePluginInterface carried @JsonTypeInfo(Id.CLASS), which makes Jackson resolve a
policy rule's `type:` via Class.forName on the raw user string and silently bypasses
any PluginDeserializer registered through JacksonMapperModuleProvider.

Same fix as AppBlockInterface in #20443; EE companion PR registers Rule with
PluginDeserializer for kestra-io/kestra-ee#10555.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 84bbe76)

* fix(apps): remove @JsonTypeInfo from AppBlockInterface

The AppBlockInterface part of #20443: a type carrying @JsonTypeInfo silently bypasses
the PluginDeserializer that EE registers for Block through JacksonMapperModuleProvider.

(cherry picked from commit 3be7b36)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants