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

After upgrading java:4-java11-appservice-stage3, Jackson introspection is failing #1086

Open
amhuhn2 opened this issue May 15, 2024 · 0 comments

Comments

@amhuhn2
Copy link

amhuhn2 commented May 15, 2024

Jackson Databind is being used to instantiate a POJO based on a Javascript string, like this:

CopyBlobConf copyBlobConf = Mapper.jsonMapper().readValue(body, CopyBlobConf.class);

This code worked prior to May 6, 2024. However, after our Java runtime was upgraded by Azure, we're now receiving the following error:

Error: Cannot construct instance of com.<company>.data.model.copy.CopyBlobConf (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value

Is there a security feature that may have been enabled with the March __ release that may have broken Jackson introspection?

Here is the log from our app function that shows the upgrade of the java runtime:

2024-05-07T03:05:51.552Z INFO - Digest: sha256:b57ab4c31547218c65a747fd3762930f07100cf3e939782db4a0b71f0f85dafd
2024-05-07T03:05:51.556Z INFO - Status: Downloaded newer image for mcr.microsoft.com/azure-functions/java:4-java11-appservice-stage3

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

No branches or pull requests

1 participant