Closed FabianMeiswinkel closed 1 month ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar @pjohari-ms @TheovanKraay.
Yes, the disallow of Jackson is due to migration serialization/deserialization to azure-json. The migration removed Jackson annotations, so normal ObjectMapper.writeValueAsString
won't work anyway.
For manual serialization, instead of ObjectMapper
, you should use SerializerFactory.createDefaultManagementSerializerAdapter().serialize(string, SerializerEncoding.JSON)
.
@alzimmermsft for awareness
For azure-cosmos-spark-* we have fixed this by making new versions work with the breaking change
Describe the bug After dependency azure-resourcemanager-cosmos was moved from 2.41.0 to 2.42.0 in sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml our Spark CI live tests start failing. The regression is introduced in the PR https://github.com/Azure/azure-sdk-for-java/pull/41412
Most likely due to the change to disallow reflection for com.fasterxml.jackson.databind in sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/module-info.java
Exception or Stack Trace