[Storage] az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failures#33730
az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failures#33730Conversation
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failures
Live test results —
|
There was a problem hiding this comment.
✅ Review: All checks passed
Live test: Run #29383646373 — success
CI checks: 1 passed, 0 failed, 0 pending
Summary
PR #33730 fixes az storage fs file download failures on ADLS Gen2 files with Content-Encoding: deflate by switching from buffered readall() to streamed readinto(stream). This aligns with the existing stream-to-file pattern used elsewhere in storage downloads.
All checks are green and the live test completed successfully. This PR is ready for maintainer review and merge.
Posted by agent-assist (autonomous bug-fix pipeline).
|
Storage |
Related command
az storage fs file downloadDescription
az storage fs file downloadcan fail on ADLS Gen2 files when the response carriesContent-Encoding: deflate; upload/list/show paths succeed, but download trips the SDKreadall()decode path.readall()to streamedreadinto(stream).storage fs file downloadwith the existing stream-to-file pattern used elsewhere in storage download flows.readinto()and does not depend onreadall().Testing Guide
Example reproduction path:
Expected: file is written successfully even when the service response includes
Content-Encoding.History Notes
[Storage]
az storage fs file download: Stream ADLS Gen2 downloads to avoid content-encoding decode failuresThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.