Azure / azure-storage-java

Microsoft Azure Storage Library for Java
https://docs.microsoft.com/en-us/java/api/overview/azure/storage
MIT License
189 stars 165 forks source link

Blob hash mismatch #560

Open wguo-talend opened 3 years ago

wguo-talend commented 3 years ago

Which service(blob, file, queue, table) does this issue concern?

blob

Which version of the SDK was used?

jdk1.8.161

What problem was encountered?

JAVA application side Blob hash mismatch (integrity check failed), Expected value is Yon0IV9W+i3Pytr9K1bNIA==, retrieved Ire7eypaoIoaUjHfM735nQ==.

azure blob storageg log 2.0;2021-03-15T01:02:06.3868005Z;GetBlob;SASNetworkError;200;216019;56;sas;;ddddd;blob;"https://xxxxxx.blob.core.windows.net/xxxx-landing/subscriptions_20210314_20.csv?sig=XXXXX&api-version=2016-05-31&sv=2018-03-28&si=golfnddd-landing-readwrite&sr=c";"/xxxxxx/golfnow-landing/subscriptions_20210314_20.csv";d2d16ad3-501e-0010-3836-190a2c000000;0;10.173.8.6:43046;2016-05-31;508;0;374;4194304;0;;;""0x8D8E7457E7FCE58"";Monday, 15Mar21 __ 00:01:33 GMT;;"Azure-Storage/5.0.0 (JavaJRE 1.8.0_161; Linux 3.10.0-862.11.6.el7.x86_64)";;"02af749e-d494-45e7-bc5b-9c4d089af58e";;;;;;;;

How could we get the detailed status code "SASNetworkError" from azure-storage-api ?

As a feature we can add a mechanism to retry the download(a limited number of time) but based on a String containing SASNetworkError is maybe not reliable. It would be better if Microsoft sent a different HTTP message that matches that something fails. Do we have the full list from Microsoft of error like SASNetworkError?

Have you found a mitigation/solution?

no