Skip to content
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

[BUG] Storage Client-Side Encryption alters user-provided metadata object #24801

Closed
jaschrep-msft opened this issue Oct 18, 2021 · 0 comments
Closed
Assignees
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. Storage Storage Service (Queues, Blobs, Files)

Comments

@jaschrep-msft
Copy link
Member

Describe the bug
Client-side encrypted upload (BlobClient.Upload()) alters the actual Dictionary<string, string> of metadata passed by the user as blob metadata.

Expected behavior
User-provided dictionary should be un-modified. Upload() should clone the dictionary and modify the clone as necessary for encryption purposes

Actual behavior (include Exception or Stack Trace)
Upload() sets the value of encryptiondata in the user's metadata object.

To Reproduce
Upload blob content with metadata while client-side encryption is enabled. Observe dictionary before and after upload.

Environment:

  • Azure.Storage.Blobs 12.10.0
  • net461 Windows 10
  • Visual Studio 2019 16.11.5
@jaschrep-msft jaschrep-msft added Storage Storage Service (Queues, Blobs, Files) Client This issue points to a problem in the data-plane of the library. bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Oct 18, 2021
@jaschrep-msft jaschrep-msft self-assigned this Oct 18, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

1 participant