question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Blob container's metadata is always empty when listed

See original GitHub issue

Describe the bug I’m using the Azure.ResourceManager.Storage sdk and the StorageManagementClient client, and calling client.BlobContainers.ListAsync. The returned list of ListContainerItem has a property called Metadata, which is basically the same as tags. The issue is that the Metadata I see on the blob container in the azure portal isn’t in the returned ListContainerItem, instead it is always an empty IDictionary. On the contrary, when I fetch the blob container with client.BlobContainers.GetAsync, the Metadata is returned correctly.

Expected behavior The Metadata will be present in the returned ListContainerItem.

Actual behavior (include Exception or Stack Trace) The Metadata property is an empty IDictionary.

To Reproduce

  1. Create a StorageManagementClient client.
  2. Call client.BlobContainers.ListAsync.
  3. See that the Metadata is always empty

Environment:

  • Azure.ResourceManager.Storage - 1.0.0-preview.2
  • Windows 10, .NET Framework 5
  • e.g. Visual Studio 16.8.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
bluewwcommented, Mar 28, 2023

@omri-muszkal Actually, the issue is on server side instead of Client (SDK) side. (Both Arthur and me works on client side.) So we will need server team to update server by return the container metadata to fix this issue?

We have contact server team, and a bug is already opened. However, it looks the issue is still not fixed on server side.

To make server team understand the importance and priority of this issue, you might can also try to connect to Server team with your channel, such like open a help request from Azure portal. image

0reactions
ArthurMa1978commented, May 22, 2023

Close as this is not client-side issue, please file ticket to ask service team to fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to check if metadata is empty
I tried in my system. Try with using blob.Metadata.Count which returns the integer value if the metadata data not set it returns the...
Read more >
Azure Storage blob inventory
Empty containers aren't listed in the blob inventory report. A report for containers describes containers and their associated properties ...
Read more >
Manage block blobs with PowerShell - Azure Storage
Manage blob properties and metadata. A container exposes both system properties and user-defined metadata. System properties exist on each Blob ...
Read more >
Microsoft Azure Blob Storage
This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details....
Read more >
Object Storage API — swift documentation
Lists containers for an account. Creates, updates, shows, and deletes account metadata. For more information and concepts about accounts see Object Storage ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found