This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 4ba4b3e485 ci: align Azurite range reads at EOF with Azure (#8582)
4ba4b3e485 is described below
commit 4ba4b3e48547e6fe7e0ec848e8eac6c0df86d7e9
Author: Xuanwo <[email protected]>
AuthorDate: Sun Nov 22 00:38:48 2026 +0800
ci: align Azurite range reads at EOF with Azure (#8582)
---
fixtures/azblob/setup_azurite.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/fixtures/azblob/setup_azurite.sh b/fixtures/azblob/setup_azurite.sh
index 00ad15a841..5e45884e96 100755
--- a/fixtures/azblob/setup_azurite.sh
+++ b/fixtures/azblob/setup_azurite.sh
@@ -27,6 +27,24 @@ mkdir -p "${azurite_data_dir}"
npm install -g "azurite@${azurite_version}" --no-audit --no-fund
--loglevel=error
+# Azure rejects a ranged GET starting at EOF. Keep full GETs of empty blobs
valid.
+# Remove this patch once https://github.com/Azure/Azurite/issues/318 is fixed
in the pinned release.
+if [[ "${azurite_version}" == 3.38.0 ]]; then
+ azurite_handler="$(npm root
-g)/azurite/dist/src/blob/handlers/BlobHandler.js"
+ patch --batch --forward --fuzz=0 "${azurite_handler}" <<'PATCH'
+--- BlobHandler.js
++++ BlobHandler.js
+@@ -704,6 +704,5 @@
+ const rangeStart = rangesParts ? rangesParts[0] : 0;
+ let rangeEnd = rangesParts ? rangesParts[1] : Infinity;
+- // Start Range is bigger than blob length
+- if (rangeStart > blob.properties.contentLength) {
++ if (rangesParts && rangeStart >= blob.properties.contentLength) {
+ throw
StorageErrorFactory_1.default.getInvalidPageRange2(context.contextId, `bytes
*/${blob.properties.contentLength}`);
+ }
+PATCH
+fi
+
nohup azurite-blob \
--location "${azurite_data_dir}" \
--blobHost 0.0.0.0 \