Repository navigation
fix(plugins): remove @JsonTypeInfo from RulePluginInterface - #21676
Merged
Merged
Conversation
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>
2 tasks done
Contributor
🐋 Docker image
|
maxwo
marked this pull request as ready for review
October 22, 2026 09:33
ammeek
approved these changes
Oct 22, 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>
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
RulePluginInterface's@JsonTypeInfo(Id.CLASS): it made Jackson resolve a policy rule'stype:viaClass.forNameon the raw user string, and silently bypassed anyPluginDeserializerregistered throughJacksonMapperModuleProvider(kestra-io/kestra-ee#10555).AppBlockInterfacein fix(plugins): add a Jackson module SPI for plugin interfaces declared outside core #20443; reuses the SPI added there.Companion to https://github.com/kestra-io/kestra-ee/pull/11842 that registers
RulewithPluginDeserializer. Both should land together.Test plan
RuleJacksonModuleProviderTestfails (2/3) without this change and passes with it🤖 Generated with Claude Code