microsoft / microsoft/AzureStorageExplorer
Delete multiple blobs which do not have a current version is not working
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 452
- Forks
- 92
- Avg merge
- 15h 20m
- Merged PRs (30d)
- 3
Description
Preflight Checklist
- I have installed the latest version of Storage Explorer.
- I have checked existing resources, including the troubleshooting guide and the release notes.
- I have searched for similar issues.
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
- Have versioning and soft delete enabled for the storage blob
- Have two blobs available without current version
- Launch Storage Explorer
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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