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 50c4e36bd7 docs(services/supabase): document stale source ETag on 
writer copies (#9081)
50c4e36bd7 is described below

commit 50c4e36bd726b08aaa951e4ac694cf6f262d3faf
Author: Xuanwo <[email protected]>
AuthorDate: Wed Nov 25 23:14:08 2026 +0800

    docs(services/supabase): document stale source ETag on writer copies (#9081)
---
 core/services/s3/src/supabase.md | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/core/services/s3/src/supabase.md b/core/services/s3/src/supabase.md
index 8eebd6cbbb..34163410b2 100644
--- a/core/services/s3/src/supabase.md
+++ b/core/services/s3/src/supabase.md
@@ -21,6 +21,34 @@ environment variables or shared credentials file with the 
provider’s keys.
 
 See the [Supabase Storage 
documentation](https://supabase.com/docs/guides/storage/s3/authentication).
 
+## Source ETag conditions in writer copies
+
+On self-hosted Supabase Storage 1.99.1 with the `file` backend, a same-bucket
+ranged `UploadPartCopy` can accept a stale source ETag passed as `if_match` to
+`Writer::copy_from_options`. `Writer::close` can then commit bytes from the
+replacement source. Supabase lists `x-amz-copy-source-if-match` as unsupported
+for `UploadPartCopy` and `If-Match` as supported for `GetObject`.
+See [Supabase S3 
compatibility](https://supabase.com/docs/guides/storage/s3/compatibility#object-operations).
+
+Apply the layer below to stream all writer copies on the operator through the
+client, including unconditional copies. When you set `if_match`, OpenDAL sends
+`If-Match` on the source read. On the tested deployment, a matching ETag 
allowed
+the copy to complete and a stale ETag returned HTTP 412, which OpenDAL reports
+as `ErrorKind::ConditionNotMatch`.
+
+```rust
+# fn use_streaming_copies(op: opendal_core::Operator) -> 
opendal_core::Result<opendal_core::Operator> {
+use opendal_core::layers::CapabilityOverrideLayer;
+
+let op = op.layer(CapabilityOverrideLayer::from_overrides(
+    "write_can_copy_from=false",
+)?);
+# Ok(op)
+# }
+```
+
+## Example
+
 ```rust
 use opendal_core::{Operator, Result};
 use opendal_service_s3::Supabase;

Reply via email to