[BUG] WrapKeyInternal in Azure.Storage.Blobs calls wrong method #42160
Labels
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.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Library name and version
Azure.Storage.Blobs
Describe the bug
'WrapKeyInternal' in SpecializedBlobExtensions in Azure.Storage.Blobs calls 'UnwrapKey' in case of non-async call.
Expected behavior
'WrapKeyInternal' should wrap key independently of being called as async or sync.
If 'sync' branch part is not used at all and not covered in tests, hten it should be removed, otherwise this needs to be fixed and do wrap.
Actual behavior
'WrapKeyInternal' wraps key in case it is called as async, and unwraps (?) key in case it is called as sync.
Reproduction Steps
This is obvious code defect, can be seem in sources.
Environment
No response
The text was updated successfully, but these errors were encountered: