Azurite icon indicating copy to clipboard operation
Azurite copied to clipboard

Is finding blobs by tags supported?

Open kurt-mueller-osumc opened this issue 3 years ago • 6 comments

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?

kurt-mueller-osumc avatar Feb 01 '22 00:02 kurt-mueller-osumc

@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

blueww avatar Feb 07 '22 09:02 blueww

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 avatar Feb 22 '23 23:02 jfurmankiewiczpros

See this comment in particular:

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

jfurmankiewiczpros avatar Feb 22 '23 23:02 jfurmankiewiczpros

@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.

blueww avatar Feb 23 '23 03:02 blueww

@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?

toby-smallwood-talogy avatar Dec 19 '23 15:12 toby-smallwood-talogy

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

EmmaZhu avatar Dec 20 '23 01:12 EmmaZhu