-
Notifications
You must be signed in to change notification settings - Fork 849
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
The downloaded file won't be truncated to correct size after sdk/storage/azblob:v1.2.0 #21995
Comments
Can you provide exact test case that you are doing. Why do you expect downloaded file to be truncated? downloaded file shall match exactly the one in container by default. |
Can you also share the file-size in local and on download. |
Test environment: Azure Storage Account with a test container.
They have the same size, everything works as expected.
As you can see the file downloaded by
|
@Malsourie, thanks for reporting this issue. The fix has been merged and will be part of the next release. |
Bug Report
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob
v1.2.0
go version
: 1.20The downloaded file will not be truncated after method
DownloadFile
underazure-sdk-for-go/sdk/storage/azblob/blockblob/client.go
is called. Therefore the md5 and size of the downloaded file does not match the original blob in container.The file size and md5 should be the same between the downloaded file and the original one in the container.
Call the method
DownloadFile
and compare the sha/md5 and the size of the file.The text was updated successfully, but these errors were encountered: