Metadata not uploaded with UploadStreamToBlockBlob #17061
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
sdk/storage/azblob/v0.3.0
go version go1.16.3 linux/amd64
When using UploadStreamToBlockBlob to upload a blob, any added metadata is not uploaded. If I instead use UploadBufferToBlockBlob it works as expected and the metadata is uploaded as expected.
The following code demonstrates the problem. The stream upload will not result in any metadata being uploaded, but the buffer upload will. I have verified that the metadata is missing both with listing the objects as well as by inspecting the object via the Azure portal.
The text was updated successfully, but these errors were encountered: