Upstream Jackson bug causing BigDecimal
deserialization issues when missing leading zeros
#41099
Labels
BigDecimal
deserialization issues when missing leading zeros
#41099
Describe the bug
After trying to make the leap from Quarkus
3.2
to3.8
I noticed an expected crash in automated tests around Jackson deserialization of the value.2
into a BigDecimal field. I believe this issue was tracked and resolved upstream with details found here.It looks like the
jackson-databind
patch2.17.1
with the fix was already included in Quarkus3.11.1
. I did upgrade to3.11.1
and found the issue solved. Any chance you'd consider bringing this fix into the latest LTS branch3.8
as well?Expected behavior
A contract with field set correctly.
Actual behavior
How to Reproduce?
See linked issue for a better example. Here is a minimalistic example.
Example contract
Example input
Output of
uname -a
orver
Linux dev 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.6" 2023-01-17 LTS OpenJDK Runtime Environment Corretto-17.0.6.10.1 (build 17.0.6+10-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.6.10.1 (build 17.0.6+10-LTS, mixed mode, sharing)
Quarkus version or git rev
3.8.5
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.8.6
Additional information
Placing this in the project's
pom.xml
seems to workaround the bug while staying on the Quarkus3.2
track.The text was updated successfully, but these errors were encountered: