-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@azure/storage-blob - containerClient.listBlobsFlat() metadata property is empty #12708
Comments
You need to set the options.includeMetadata to true for List Blob to return metadata. |
@ljian3377 I see that in the docs - thank you - missed that. |
@ljian3377 When I set the metadata with a property name with a capitalization, why is the property name lowercased when returned via containerclient.listBlobsFlat? I can't find the docs that indicate this casing change. `
` |
This is unfortunate because the metadata is passed to the service via http header keys, and our http client We have some warnings in |
@jeremymeng Could there be a more general statement made such as..."All modern (track 2) libraries which use node-fetch and sends data via header key names, such as Storage Blob metadata, will have lowercased property names due to a node-fetch restriction." Or just all libraries that depend on node-fetch can assume property names of JSON will be lowercased? |
This. Only data send via http header key names are affected. Http header key values are working fine. Although Storage Blob metadata is the only impacted feature that I know so far. |
@diberry What is your suggested follow-up for this issue? Maybe
|
Any storage methods that set or get headers that are lowercased need to have additional text - @jeremymeng text is fine.
|
Hi @diberry, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
Describe the bug
Metadata set on blob isn't returned as part of blobInfo in ListBlobsFlat. The Metadata property is returned, it just doesn't have the data.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect if I set the metadata for a blob, and I can see the metadata in the Storage Explorer for that blob, then it is the same metadata that is returned with listBlobsFlat. Not sure why metadata is a string when I expect an object.
Screenshots
2 screenshots from react app debugging issue where metadata is returned as a string. 1 screenshot of storage explorer with metadata property I expect to see in code.
Additional context
I didn't add any additional security that would indicate I don't want metadata returned in the list.
The text was updated successfully, but these errors were encountered: