Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(object-mapper): Fix our custom mappers creation to avoid mutating the initial ObjectMapper #804

Merged
merged 3 commits into from
May 31, 2024

Conversation

johnBgood
Copy link
Collaborator

@johnBgood johnBgood commented May 31, 2024

Description

We can't set a process variable to null, because the ObjectMapper was configured to ignore NULL values.
This was a side effect due to the ZeebeObjectMapper and SdkObjectMapper using the objectMapper and mutating it.

To avoid breaking things, I just copied the initial mapper to keep the current behavior for the said mappers while avoiding the mutations.

I plan to backport this in:

  • 8.4
  • 8.5

closes camunda/connectors#2648

@johnBgood johnBgood self-assigned this May 31, 2024
@johnBgood johnBgood added the bug label May 31, 2024
Copy link
Collaborator

@jonathanlukas jonathanlukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@johnBgood johnBgood merged commit de3bba9 into main May 31, 2024
4 checks passed
@johnBgood johnBgood deleted the connectors-issues-2648 branch May 31, 2024 08:50
johnBgood added a commit that referenced this pull request May 31, 2024
…2648

bug(object-mapper): Fix our custom mappers creation to avoid mutating the initial ObjectMapper
johnBgood added a commit that referenced this pull request May 31, 2024
…2648

bug(object-mapper): Fix our custom mappers creation to avoid mutating the initial ObjectMapper
johnBgood added a commit that referenced this pull request May 31, 2024
…2648 (#806)

bug(object-mapper): Fix our custom mappers creation to avoid mutating the initial ObjectMapper
johnBgood added a commit that referenced this pull request May 31, 2024
…2648 (#805)

bug(object-mapper): Fix our custom mappers creation to avoid mutating the initial ObjectMapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot set variable to null after it's set to a non-null value
3 participants