Azure / Azure/Azurite

Upload Blob from URL successfully creates a blob with invalid URL

Open
#2,319 2 comments 0 reactions 1 assignee Claimed by @EmmaZhu View on GitHub
blob-storage bug
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?
- Azurite does not enforce URL validation for Upload Blob from URL (Python SDK), unlike the cloud which responds with `Could not verify copy source`. Anything passed to the source URL works on Azurite.
- Azurite creates a blob even if the URL is of a non-existing blob unlike the cloud which responds with `The specified blob does not exist`.

In both cases, a blob is successfully created on Azurite.

### Steps to reproduce the issue?

Logs to reproduce scenario 1: [debug.log](https://github.com/Azure/Azurite/files/13621336/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.