Azure / Azure/Azurite

Undelete Container API creates a new container

Open
#2,318 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.3k
Forks
393
Avg merge
1d 20h
Merged PRs (30d)
36

Description

### Which service(blob, file, queue, table) does this issue concern?
Azure Blob
### Which version of the Azurite was used?
3.21.0
### Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
### What's the Node.js version?
14.18.1
### What problem was encountered?
Undelete container API does not behave correctly. A few scenarios of API violations:

- When a container previously deleted is undeleted, the API generates an empty container with the same name rather than restoring its prior contents.
- If attempting to undelete a container that was never deleted, the API generates an empty container with that name instead of indicating that it was never deleted.
- The undelete container cloud API enforces strict verification for the "delete container version," while Azurite accepts any value for it.

From the logs, it looks like the create_container operation is performed against this API.

### Steps to reproduce the issue?

Logs to reproduce the scenario 1: [debug.log](https://github.com/Azure/Azurite/files/13620754/debug.log)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.