Open yifanz0 opened 1 year ago
Thank you for your feedback. This has been routed to the support team for assistance.
Adding Service team to look into this.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sumantmehtams.
Library name and version
Azure.Storage.Files.DataLake 12.14.0-beta.1
Describe the bug
DataLakeFileUploadOptions for the upload method is missing the property EncryptionContext https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileUploadOptions.cs#L12
Currently in order to set EncrypionContext, customers have to call Create method (which supports setting EncryptionContext) and then Append & Flush the content by chunks manually. We've tried Create + Upload, but the upload method would overwrite EncryptionContext to null. As upload method is supposed to create and upload the content, it should support EncryptionContext in the properties
Expected behavior
Users should be able to set EncryptionContext when using Upload method.
Actual behavior
Users are not able to set EncryptionContext when using Upload method https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileUploadOptions.cs#L12
Reproduction Steps
Create and upload a new datalake gen2 item using the upload method https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileClient.cs#L3863
Environment
No response