microsoft / AzureStorageExplorer

Easily manage the contents of your storage account with Azure Storage Explorer. Upload, download, and manage blobs, files, queues, tables, and Cosmos DB entities. Gain easy access to manage your virtual machine disks. Work with either Azure Resource Manager or classic storage accounts, plus manage and configure cross-origin resource sharing (CORS) rules.
Creative Commons Attribution 4.0 International
376 stars 86 forks source link

The opened tab is not closed after deleting the corresponding blob container #8179

Closed v-xianya closed 1 month ago

v-xianya commented 1 month ago

Storage Explorer Version: 1.36.0-dev (100) Build Number: 20240911.2 Branch: main Platform/OS: Windows11/Windows 10/Linux Ubuntu 22.04/MacOS Sonoma 14.6.1(Apple M1 Pro) Architecture: arm64/x64/x64/arm64 How Found: From running test cases Regression From: Previous release (1.35.0)

Steps to Reproduce

  1. Expand one storage account -> Blob Containers.
  2. Create a blob container -> Then delete it.
  3. Check whether the opened tab is closed.

Expected Experience

The opened tab is closed.

Actual Experience

The opened tab is not closed.

craxal commented 1 month ago

Well, silly me. By making closeTab() async and awaiting the result, that put us right back into the dead lock I was originally trying to solve.

Here's what I think we can do:

Introduced when fixing #8172 and #8173.

v-kellyluo commented 1 month ago

Verified this issue on the build 20240914.2. Fixed.