microsoft / microsoft/AzureStorageExplorer

Delete multiple blobs which do not have a current version is not working

Open
#6,596 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:gear: azcopy
Dominant language
No language data
Stars
452
Forks
92
Avg merge
15h 20m
Merged PRs (30d)
3

Description

Preflight Checklist
Storage Explorer Version

1.28.0

Regression From

No response

Architecture

x64

Storage Explorer Build Number

No response

Platform

Windows

OS Version

No response

Bug Description

In "All blobs and blobs without current version" view with "flat" selected as list mode it is not possible to delete multiple blobs. It is working fine when selecting only one blob and delete it. When checking the AzCopy command it looks like the "--list-of-versions" parameter is not correctly working when selecting multiple blobs.

AzCopy when selecting one blob:
$env:AZCOPY_CONCURRENCY_VALUE = "AUTO";
$env:AZCOPY_CRED_TYPE = "Anonymous";
./azcopy.exe remove "The_URL&versionid=2022-11-02T19%3A52%3A38.3629480Z" --from-to=BlobTrash --recursive --log-level=INFO;
$env:AZCOPY_CONCURRENCY_VALUE = "";
$env:AZCOPY_CRED_TYPE = "";

=> this is successful

AzCopy when selecting multiple blobs without current version (it fails on the first file in the list). The URL is same, except that here there is no versionId available, but instead it is within the file at the "--list-of-versions" parameter.
$env:AZCOPY_CONCURRENCY_VALUE = "AUTO";
$env:AZCOPY_CRED_TYPE = "Anonymous";
./azcopy.exe remove "The_URL" --from-to=BlobTrash --recursive --list-of-versions "C:\localpath\stg-exp-azcopy-5ef18cdb-0b6e-439f-bb8c-a007d0c83646.txt" --log-level=INFO;
$env:AZCOPY_CONCURRENCY_VALUE = "";
$env:AZCOPY_CRED_TYPE = "";

=> This is not working and throwing an error

Steps to Reproduce
  1. Have versioning and soft delete enabled for the storage blob
  2. Have two blobs available without current version
  3. Launch Storage Explorer
  4. Select the two blobs and try to delete both
Actual Experience

Error is thrown
RESPONSE Status: 404 The specified blob does not exist.

Expected Experience

Multiple blobs without current version get deleted either at once or at least one after another

Additional Context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with two blobs without a current version in the “All blobs and blobs without current version” flat view. Start by tracing the generated AzCopy remove command, especially the --list-of-versions file, and compare it with the successful single-blob command. Done means multiple selected blobs without current versions can be deleted without a 404 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.