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 fe63a79b27 docs(services/webdav): update CapabilityOverrideLayer note
after #8641 (#8646)
fe63a79b27 is described below
commit fe63a79b27083d3d010227c9c21ba5c0d16d0fed
Author: Xuanwo <[email protected]>
AuthorDate: Sun Nov 22 14:33:59 2026 +0800
docs(services/webdav): update CapabilityOverrideLayer note after #8641
(#8646)
docs(services/webdav): describe enforced capability overrides
---
core/services/webdav/README.md | 7 +++----
core/services/webdav/src/docs.md | 12 +++++-------
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/core/services/webdav/README.md b/core/services/webdav/README.md
index 4b203bbd77..effbaad3a5 100644
--- a/core/services/webdav/README.md
+++ b/core/services/webdav/README.md
@@ -11,10 +11,9 @@ with Apache OpenDALâ„¢.
> after a same-second overwrite, allowing a stale `If-Match` to overwrite or
> delete newer content.
>
-> Use `CapabilityOverrideLayer` to mark affected capabilities as disabled
-> and check `op.info().capability()` before issuing the operation. An explicit
-> conditional call can still reach the server
-> ([#8640](https://github.com/apache/opendal/issues/8640)).
+> Use `CapabilityOverrideLayer` to disable the affected capabilities. OpenDAL
+> returns `ErrorKind::Unsupported` before sending a conditional write or delete
+> to the server if the operation uses a disabled capability.
## Use through `opendal`
diff --git a/core/services/webdav/src/docs.md b/core/services/webdav/src/docs.md
index 2cf3cd9c78..e4a84cdf1f 100644
--- a/core/services/webdav/src/docs.md
+++ b/core/services/webdav/src/docs.md
@@ -7,10 +7,9 @@
> delete newer content.
>
> Use
> [`CapabilityOverrideLayer`][opendal_core::layers::CapabilityOverrideLayer]
-> to mark affected capabilities as disabled and check `op.info().capability()`
-> before issuing the operation. An explicit conditional call can still reach
-> the server
-> ([#8640](https://github.com/apache/opendal/issues/8640)).
+> to disable the affected capabilities. OpenDAL returns
+> [`opendal_core::ErrorKind::Unsupported`] before sending a conditional write
+> or delete to the server if the operation uses a disabled capability.
## Capabilities
@@ -65,9 +64,8 @@ Each concurrent create trial used eight requests against the
same missing path.
Apache HTTP Server, ownCloud, Nextcloud, and `dav-server` also accepted an
overwrite when `If-None-Match` supplied the weak form of a current strong ETag.
-For the nginx deployment above, report all four conditional write and delete
-capabilities as disabled. Check the flag for the condition you intend to use
-in the operator’s effective capabilities.
+For the nginx deployment above, use `CapabilityOverrideLayer` to disable all
+four conditional write and delete capabilities.
```rust,no_run
use opendal_core::layers::CapabilityOverrideLayer;