Xuanwo opened a new pull request, #8582: URL: https://github.com/apache/opendal/pull/8582
# Which issue does this PR close? Follow-up to #8557 and #7938. Azurite tracks the EOF bug in [Azure/Azurite#318](https://github.com/Azure/Azurite/issues/318). # Rationale for this change The [Azurite behavior job](https://github.com/apache/opendal/actions/runs/44917493671/job/136886194973) fails `test_read_limit` at EOF. For a six-byte block blob, `GET` with `Range: bytes=6-7` returns `206 Partial Content` with `Content-Range: bytes 6-5/6`, `Content-Length: 0`, and an empty body. Azurite checks if the start is greater than the length, then clamps the end to the last byte. OpenDAL rejects the inverted range while parsing the response metadata. On a public Azure block blob, the equivalent request with `x-ms-version: 2022-11-02` returns `416`, `Content-Range: bytes */<length>`, and `InvalidRange` in the header and XML body. The existing OpenDAL limited read returns `RangeNotSatisfied` against Azure. The last valid byte still reads successfully. [Azure Get Blob](https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob) ยท [Azure REST error codes](https://learn.microsoft.com/en-us/rest/api/storageservices/common-rest-api-error-codes) # What changes are included in this PR? Patch the pinned Azurite 3.38.0 fixture to use its existing `416 InvalidRange` response when a block or append blob GET supplies a range starting at or beyond EOF. A full GET of an empty blob still succeeds. The existing behavior test exercises the corrected response through the OpenDAL read path. # Are there any user-facing changes? CI fixture only. # Breaking changes # AI Usage Statement - **Harness:** pi - **Model:** codex/gpt-6.2-sol - **Effort:** xhigh - **Role:** Diagnosed the CI failure, compared HTTP responses from Azurite and public Azure Blob Storage, implemented the fixture patch, and validated the affected behavior. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
