[BUG] Azure.Core depends on buggy version of System.Memory.Data #48448
Labels
Azure.Core
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Core 1.45.0
Describe the bug
Hi,
Azure.Core depends on System.Memory.Data >= 6.0.0 that has a bug in BinaryData.ToString().
When installing the latest version of Azure-relevant SDK such as Azure Storage blob SDK, that uses BinaryData type, it results in null reference exception.
The mitigation is explicitly installing a newer version of System.Memory.Data, that is not developer friendly.
Can you please upgrade the underlying version of System.Memory.Data to a newer version ?
BTW this is the bug in BinaryData.ToString that was fixed in newer versions
dotnet/runtime@a685d88
Expected behavior
Not getting null reference exception from BinaryData.ToString() when BinaryData is empty
Actual behavior
empty BinaryData throws null reference exception
Reproduction Steps
Install latest version of Azure.Core.
Then in your project write the following code:
var binaryData = new BinaryData(new byte[0]);
// throws Null ref exception
var x = binaryData.ToString()
Environment
No response
The text was updated successfully, but these errors were encountered: