-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Jackson configuration in 4.2.4 broke deserialization #3732
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
Comments
@Z-EMB This is due to a fix we applied to address CVE-2020-5411. The javadoc for the |
@mminella Fixing a security vulnerability makes sense. But this is a patch version change in spring batch. It is unexpected to have an exception occur. If this was a major version upgrade, I'd be happy to introduce my own object mapper to make sure it's backwards compatible. |
@Z-EMB If there was a way to fix it without a code change, we would be happy to do so, however this is the only way to fix the CVE. Given that the Spring Batch 4.2 line is still supported, we had to make this change there. We do regret the inconvenience it will cause but I think everyone would agree that the update is worth running the most secure library possible. To be clear, you can re-configure your |
we have recently migrated our batch from 4.2.1 to 4.3.5 and we are seeing that Jackson configuration in 4.3.5 broke deserialization we tried clearing up our batch tables but that didn't solve our issue can some one suggest us ? |
Wierd issue is that even we dropped batch tables and ran out batch job expecting table not found errors but we are still seeing the job was unable to deserialize execution context |
Bug description
#3729 ported to 4.2.4 and pulled in springboot 2.3.1 broke old jobs context.
Environment
Spring Batch 2.3.1, jdk 11, PostgreSQL
Steps to reproduce
jobExplorer.getJobExecution(executionId)
using execution id of a job ran in a previous stepjobExplorer.getJobExecution(executionId)
using execution id of a job ran in a previous stepSKIPPED trace
batch_job_execution_context
table values change. All job executions before 886 blow up with above.Expected behavior
No exception occurs in deserialization
The text was updated successfully, but these errors were encountered: