Comments (6)
Hi @xuanhai266, a new version of azure-ai-documentintelligence
has shipped:
https://central.sonatype.com/artifact/com.azure/azure-ai-documentintelligence
With this I think the issue can be considered addressed.
from azure-sdk-for-java.
@alzimmermsft @jairmyree could you please assist @xuanhai266 here?
from azure-sdk-for-java.
Thanks for filing this issue @xuanhai266.
The issue appears to be that azure-search-documents
includes a dependency on azure-core-serializer-json-jackson
, which supplies a service provider implementation for JsonSerializer
. So, when the request call is made instead of using the default implementation of JsonSerializer
provided by azure-core
it uses the one in azure-core-serializer-json-jackson
which has one major difference in null
values being included in serialization (the azure-core
implementation is specifically meant for types managed by Azure SDKs and we don't send null
values).
One solution to this problem is to Maven exclude the azure-core-serializer-json-jackson
dependency from `azure-search-documents:
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-search-documents</artifactId>
<version>11.7.0-beta.3</version>
<exclusions>
<exclusion>
<groupId>com.azure</groupId>
<artifactId>azure-core-serializer-json-jackson</artifactId>
</exclusion>
</exclusions>
</dependency>
Which I've verified locally makes the Document Intelligence API call work. But this could break features in azure-search-documents
.
Another solution is preventing azure-core-serializer-json-jackson
's JsonSerializer
implementation to be loaded from the service provider.
I also looked at the in-development version of azure-ai-documentintelligence
and it is migrating to our new serialization framework using azure-json
and it worked without any dependency removes or changes to build as it no longer uses Jackson annotations for serialization.
from azure-sdk-for-java.
@alzimmermsft
Thank you for your response.
One solution to this problem is to Maven exclude the azure-core-serializer-json-jackson dependency from `azure-search-documents:
Yes, this workaround is working well.
But this could break features in azure-search-documents.
Do you know which features of azure-search-documents will be broken if I exclude the azure-core-serializer-json-jackson dependency?
I also looked at the in-development version of azure-ai-documentintelligence and it is migrating to our new serialization framework using azure-json and it worked without any dependency removes or changes to build as it no longer uses Jackson annotations for serialization.
When does this version of azure-ai-documentintelligence release?
from azure-sdk-for-java.
Do you know which features of azure-search-documents will be broken if I exclude the azure-core-serializer-json-jackson dependency?
When azure-core-serializer-json-jackson
is excluded azure-search-documents
will fall back to the default serializer provided by azure-core
to manage serializing documents sent to and received from the Search service, unless a custom JsonSerializer
is passed while creating the SearchClient
(SearchClientBuilder.serializer). This will result in slightly different serialization handling provided by Jackson Databind, which may break some cases such as the default serializer in azure-core
doesn't serialize null properties which is a valid case in a Search document.
When does this version of azure-ai-documentintelligence release?
Let me follow-up with the owner of the SDK on this.
from azure-sdk-for-java.
Hi @xuanhai266. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-java.
Related Issues (20)
- [Tests Improvement] Formrecognizer custom form tests timing out
- [OpenAI] Support 2024-07-01-preview
- [BUG] azure-ai-openai - BinaryData.toObject doesn't convert tools in 1.0.0-beta.10 HOT 15
- [Question] How to implement batch message receiving in the Java version of the Event Hub SDK? HOT 4
- [QUERY] Spring Cloud Azure 5.14.0 availability on Maven Central HOT 4
- [BUG] - Resend the message from Service Bus is not working while consuming the message from Function code ( Error - This body type not is supported: VALUE) HOT 5
- [BUG] CosmosDiagnosticContext producing fatal error related to startOperation being called multiple times after package upgrade HOT 2
- [BUG] LogsIngestionClient does not use its ThreadPool for processing HOT 2
- [BUG] Azure OpenAI SDK: cannot use HTTP calls when using local endpoint HOT 1
- [Question] Playback doesn't work on LRO calls HOT 1
- Should azure core add InstrumentationPolicy by default whenever azure core httpclient is used HOT 2
- Cloud Shell ManagedIdentitySource should throw if a user-assigned managed identity clientID or resourceID is supplied HOT 1
- [Identity] AzurePipelinesCredential parameterless constructor and add to DAC HOT 2
- [Identity] Create a new credential to support FIC in Github Actions HOT 2
- [BUG] spring-cloud-azure-starter-keyvault-secrets (5.14.0) - vulnerabilities in dependent netty-handler (4.1.111.Final) library HOT 3
- [BUG] 500/20910 Exceptions Should Fail Fast
- [BUG] azure-json throws an illegal state exception when running the GetEmbeddingSample code HOT 4
- [BUG] Azure OpenAI > 1.0.0-beta.8 (starting from beta 9) causes JSON streaming payload issues HOT 2
- [BUG] Feature Management no longer working in 5.14.0 HOT 7
- [BUG] Blob Storage Cryptography encode special characters in blob names HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.