Azure / Azurite

A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies
MIT License
1.83k stars 324 forks source link

Is finding blobs by tags supported? #1312

Open kurt-mueller-osumc opened 2 years ago

kurt-mueller-osumc commented 2 years ago

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the Azurite was used?

Azurite docker image, tag 3.15

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

DockerHub

What's the Node.js version?

n/a

What problem was encountered?

Calling BlobServiceClient.FindBlobsByTags results in a 400 http error.

Steps to reproduce the issue?

You can find a script file that reproduces the issue here: https://github.com/kurt-mueller-osumc/Azure.Starter.Functions/blob/main/scratch.fsx

#r "nuget: Azure.Storage.Blobs, 12.11.0-beta.2"

open Azure.Core
open Azure.Storage.Blobs

open System

let connectionString = Environment.GetEnvironmentVariable("AzureWebJobsStorage")

let serviceClient = BlobServiceClient(connectionString)

let searchClause = "@container = 'samples-workitems'"

let containers = serviceClient.GetBlobContainers() // works correctly
let results = serviceClient.FindBlobsByTags(searchClause) // returns an http 400 error

I suspect that FindBlobsByTags isn't supported by Azurite yet. Is that the case and if so, when will support for this method be added?

blueww commented 2 years ago

@kurt-mueller-osumc Blob tag is still not supported by Azurite, you can find it in "Following features or REST APIs are NOT supported" in https://github.com/Azure/Azurite#support-matrix. And we have another issue to follow blob tag support in Azurite: https://github.com/Azure/Azurite/issues/647

jfurmankiewiczpros commented 1 year ago

Hi, any ETA on this? We just filed a bug in the Azure SDK itself, as it is throwing a NullPointerException when connected to Azurite, due to lack of '501 Not Implemented'

See: https://github.com/Azure/azure-sdk-for-java/issues/33672

jfurmankiewiczpros commented 1 year ago

See this comment in particular:

https://github.com/Azure/azure-sdk-for-java/issues/33672#issuecomment-1440985010

blueww commented 1 year ago

@jfurmankiewiczpros This feature is still not supported in Azurite. We are working on a plan to implement it. However, as the feature impact many existing APIs, and also add several new APIs, the implementation will take time. Will update you when the feature is added to Azurite.

toby-smallwood-talogy commented 10 months ago

@blueww I've just encountered this issue when trying to find blobs by tags using the Azurite emulator and see you last commented on this in Feb 2023. Seeing that was 10 months ago, are you able to provide an update as to when we can expect this to be supported please?

EmmaZhu commented 10 months ago

Hi @psiservices-tsmallwood , the feature is under design and review. We have a draft PR for it here: https://github.com/Azure/Azurite/pull/2311