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
377 stars 87 forks source link

Fail to delete several different blob versions at the same time which don't have current versions #3789

Open v-xianya opened 4 years ago

v-xianya commented 4 years ago

Storage Explorer Version: 1.16.0 Build Number: 20201118.2 Branch: main Platform/OS: Windows 10/ Linux Ubuntu 16.04/ MacOS Catalina Architecture: i32/x64 Regression From: Not a regression

Steps to Reproduce

  1. Expand one normal storage account (make sure the blob versioning is enabled) -> Blob Containers.
  2. Create a blob container -> Upload two blobs.
  3. Delete the two blobs -> Switch the view to 'All blobs and blobs without current version'.
  4. Delete the two blob versions -> Observe the result.

Expected Experience

Succeed to delete the two blob versions.

Actual Experience

Fail to delete the two blob versions.

image

Error detail: { "message": "\"failed to perform remove command due to error: cannot start job due to error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /home/vsts/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.10.1-0.20201022074806-8d8fc11be726/azblob/zc_storage_error.go:42\\n===== RESPONSE ERROR (ServiceCode=BlobNotFound) =====\\nDescription=404 The specified blob does not exist., Details: (none)\\n HEAD https://atestversion.blob.core.windows.net/popopp/StorageExplorer-ia32.exe?se=2020-12-18t08%3A34%3A42z&sig=-REDACTED-&sp=rxl&sr=c&sv=2019-12-12&timeout=901&versionid=2020-11-18t08%3A33%3A04.8945264z\\n User-Agent: [Microsoft Azure Storage Explorer, 1.16.0, win32, AzCopy/10.7.0 Azure-Storage/0.10 (go1.13; Windows_NT)]\\n X-Ms-Client-Request-Id: [561e302b-37c1-4daa-6f10-6229d7bd90b7]\\n X-Ms-Version: [2019-12-12]\\n --------------------------------------------------------------------------------\\n RESPONSE Status: 404 The specified blob does not exist.\\n Date: [Wed, 18 Nov 2020 08:34:44 GMT]\\n Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]\\n X-Ms-Client-Request-Id: [561e302b-37c1-4daa-6f10-6229d7bd90b7]\\n X-Ms-Error-Code: [BlobNotFound]\\n X-Ms-Request-Id: [e8e6248a-301e-0029-3585-bd10a5000000]\\n X-Ms-Version: [2019-12-12]\\n\\n\\n.\\n\"" }

JasonYeMSFT commented 4 years ago

This is not a supported scenario. We can only delete multiple versions if they are versions of the same blob.

v-xianya commented 4 years ago

@JasonYeMSFT Since delete is not supported for this scenario. Is it possible to disable the 'delete' operation in this scenario?

MRayermannMSFT commented 3 years ago

We do not have the capability to detect such a scenario.