Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.36k stars 2k forks source link

[BUG] zipFile can't download completely in windows #41427

Open YLIU356Volvocars opened 3 months ago

YLIU356Volvocars commented 3 months ago

Describe the bug A clear and concise description of what the bug is. zipFile can't download completely in windows

Exception or Stack Trace Add the exception log and stack trace if available no error file, can't see what happend, file download more less than upload zip file. To Reproduce Steps to reproduce the behavior:

Code Snippet Add the code snippet that causes the issue. blobClient.downloadToFile(fileInfoDTO.getFileName()) Expected behavior A clear and concise description of what you expected to happen. I want download complete zipFile. Screenshots If applicable, add screenshots to help explain your problem.

image

image in azure , upload file is work ,but download file is not work。

Setup (please complete the following information):

in docker, springboot project, tomcat,java8

If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:

Additional context Add any other context about the problem here. BlobClient blobClient = BlobHelper.getBlobClient(storageConfig.getContainerName(), storageConfig); GetFileInfoDTO fileInfoDTO = tcFileUploadService.selectUrlByUid2(uid); // 下载文件 blobClient.downloadToFile(fileInfoDTO.getFileName());

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

github-actions[bot] commented 3 months ago

@ibrahimrabab @ibrandes @seanmcc-msft

github-actions[bot] commented 3 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

YLIU356Volvocars commented 3 months ago

I hope help as soon sa possible

alzimmermsft commented 3 months ago

Thanks for filing this @YLIU356Volvocars.

Would you mind providing a translation for the error message included in the second picture you included and provide a full reproduction of this issue, as what you've shared may be where the problem is happening in your application but doesn't give us any context into what is happening and would be extremely difficult for us to reproduce as it doesn't include application settings, how the blob is stored in the service.

YLIU356Volvocars commented 3 months ago

Thanks for filing this @YLIU356Volvocars.

Would you mind providing a translation for the error message included in the second picture you included and provide a full reproduction of this issue, as what you've shared may be where the problem is happening in your application but doesn't give us any context into what is happening and would be extremely difficult for us to reproduce as it doesn't include application settings, how the blob is stored in the service.

I will give me demo, I hope you give me hand. fileoperation.zip

YLIU356Volvocars commented 3 months ago

@alzimmermsft can you help me?

alzimmermsft commented 3 months ago

Thanks for sharing the demo @YLIU356Volvocars.

What is missing that would really help is an example payload used, and if using the SDK to upload the payload that logic as well. Without those it is impossible to root cause this possible problem as it won't be possible to recreate the scenario.

Additionally, in the demo you gave I see that Spring 2.2.x is being used. This version of Spring is older than what is compatible with azure-storage-blob, which may also be causing this issue. I believe only Spring 2.5.x and later are compatible with the dependencies used by the SDK.

ibrahimrabab commented 2 months ago

Hi @YLIU356Volvocars Is this still an issue? If so, can you please provide additional information on the kind of data you are using to upload, size, etc.? That would help us in investigating this better. If your issue is resolved, we can go ahead and close this.

github-actions[bot] commented 2 months ago

Hi @YLIU356Volvocars. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] commented 1 month ago

Hi @YLIU356Volvocars, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

YLIU356Volvocars commented 1 month ago

Hi @YLIU356Volvocars Is this still an issue? If so, can you please provide additional information on the kind of data you are using to upload, size, etc.? That would help us in investigating this better. If your issue is resolved, we can go ahead and close this.

I think you can provide relevant version instructions for adapting to the SpringBoot version。If version not adapting, more time time is needed to resolve version issues .