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

Copy configuration from context ObjectMapper #1162

Closed
wants to merge 2 commits into from

Conversation

lbilger
Copy link

@lbilger lbilger commented Jul 17, 2024

This PR reverts the change from 8b66fd2 that caused some regressions and tries to solve the problem in a different way: it just copies the original ObjectMapper before modifying it.

This should solve #1158 and #1159.

@ElectroLutz
Copy link

@olegz this might be the better fix.

@olegz
Copy link
Contributor

olegz commented Aug 8, 2024

This is how it was before/originally and it created a problem which actually did no harm to s-c-function application, but caused an adverse effect in other frameworks present at runtime. Basically by doing this we are modifying the ObjectMapper provided by boot.
I'll keep the PR open to think some more about it

@lbilger
Copy link
Author

lbilger commented Aug 8, 2024

Hi @olegz, there is a small but significant difference to how it was before: the call to copy() should create a copy of the provided ObjectMapper and only modify the copy, not the original one.

@olegz
Copy link
Contributor

olegz commented Aug 15, 2024

Sorry didn't notice that. Merging

@sonallux
Copy link

@olegz When will there be a new release of spring-cloud-function containing this fix? I can not find any planed release on calendar.spring.io.

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