Xuanwo opened a new pull request, #9072: URL: https://github.com/apache/opendal/pull/9072
# Which issue does this PR close? Refs #5575. # Rationale for this change Ceph RGW 20.2.5 returns an empty `<VersionId>` on a per-object `DeleteObjects` error for an unversioned request. OpenDAL decodes it as an empty string and fails to match it to the request's absent version. A batch can therefore report success even though RGW rejected an entry for a stale ETag. # What changes are included in this PR? Normalize empty version IDs when decoding `DeleteObjects` error XML. Preserve literal `null` and all nonempty version IDs. The regression test covers the omitted, empty, and explicit version forms. On unversioned Ceph RGW 20.2.5, the unchanged `test_batch_delete_with_if_match` fails on `2487b28acb` and passes with this change. RGW returns HTTP 200 with a per-key `PreconditionFailed` in both runs. The fixed build returns `ConditionNotMatch`, preserves the stale entry's replacement bytes, and deletes the matching entry. The same test passed in a local merge with the reviewed #9069 patch, which landed on `main` as `3a457e0b47`. # Are there any user-facing changes? An S3 batch delete surfaces the per-entry failure if the server uses an empty version ID for an unversioned object. The other Ceph conditional-operation failures remain tracked in #5575. # Breaking changes # AI Usage Statement | Harness | Model | Effort | Role | | --- | --- | --- | --- | | Pi | `codex/gpt-6.2-sol` | `xhigh` | Reproduced the failed batch and inspected the RGW response, implemented and tested response normalization, and prepared the PR draft. Live verification used an unversioned Ceph RGW 20.2.5 bucket. | | Pi | `agy-cli/gemini-4-neon` | `high` | Independently reviewed response decoding, compatibility with #9069 and the RGW evidence, and reran the S3 package checks. | | Pi | `codex/gpt-6.2-astra` | `high` | Scoped the follow-up and prepared the description for publication. | -- 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]
