TeamsSSOTokenExchangeMiddleware.DeduplicatedTokenExchangeIdAsync fails on BlobStorage ETag validation #6861
Labels
Area: Teams
The issue is related to Teams support
bug
Indicates an unexpected problem or an unintended behavior.
Version
4.22.9
Describe the bug
The TeamsSSOTokenExchangeMiddleware fails in DeduplicatedTokenExchangeIdAsync when Microsoft.Bot.Builder.Azure.Blobs is used as the IStorage provider if/when the WriteAsync method returns a concurrency/etag exception.
As a result the system throws Azure.RequestFailedException
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It appears as though the adapter already detects similar errors for MemoryAdapter and the CosmosDb adapter but it is not detecting the error from Azure BlobStorage. I would expect that blob storage would be similarly handled.
Screenshots
No screenshots at this time
Additional context
This seems to already be handled by the middleware for MemoryAdapter and CosmosDB.
Does this just need to be extended to look for the Azure BlobStorage version of the exception?
Example failure:
Example Stack Trace:
The text was updated successfully, but these errors were encountered: