You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "QazCetelic (via GitHub)" <gi...@apache.org> on 2026/09/19 06:48:32 UTC
[I] Conditional Write WebDAV [opendal]
QazCetelic opened a new issue, #8324:
URL: https://github.com/apache/opendal/issues/8324
WebDAV supports conditional requests with the `If` header. Conditional read [is currently implemented](https://github.com/apache/opendal/blob/b6cf44f7b8a1523409e0e998e478c996ac970f03/core/services/webdav/src/config.rs#L108) but conditional write is not.
--
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: commits-unsubscribe@opendal.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Conditional Write WebDAV [opendal]
Posted by "QazCetelic (via GitHub)" <gi...@apache.org>.
QazCetelic commented on issue #8324:
URL: https://github.com/apache/opendal/issues/8324#issuecomment-5973430552
Implemented it at https://github.com/QazCetelic/opendal/tree/feat/webdav-conditional-write, will open PR later
--
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: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Conditional Write WebDAV [opendal]
Posted by "Xuanwo (via GitHub) via commits" <co...@opendal.apache.org>.
Xuanwo commented on issue #8324:
URL: https://github.com/apache/opendal/issues/8324#issuecomment-7060739769
Thanks for testing this, @QazCetelic. When adding conditional `PUT` to `services/webdav`, please enable `write_with_if_match` and `write_with_if_none_match` by default. OpenDAL exposes capabilities by default and lets callers opt out for their endpoint, as proposed for `delete_with_if_match` in [#8296](https://github.com/apache/opendal/pull/8296).
Please document the server caveats in `core/services/webdav/src/docs.md`. In the nginx CI fixture (`ngx_http_dav_module`), a mismatched `If-Match` and `If-None-Match: *` each returned `204` and overwrote an existing file. The SabreDAV-based Nextcloud and ownCloud setups tested in #8296 can reuse an ETag across overwrites within the same second. Show how to set the affected flags to `false` with `CapabilityOverrideLayer`, and use `OPENDAL_TEST_CAPABILITY_OVERRIDES` for fixtures that cannot enforce the corresponding precondition atomically. [Layer example](https://github.com/apache/opendal/blob/main/core/core/src/layers/capability_override.rs) · [Nextcloud report](https://github.com/nextcloud/server/issues/65078)
WebDAV currently passes the HTTP preconditions through on `GET`. For `PUT`, use HTTP `If-Match` for strong tags and `If-None-Match` for negative conditions, which already use weak comparison. A PR that sends `If: ([W/"..."])` on the same `PUT` for a weak `if_match` tag would be welcome. RFC 4918 allows either strong or weak comparison for DAV `If`, so CI coverage on lighttpd, Apache httpd (`mod_dav`), and a SabreDAV-based server would help verify which servers accept a matching tag and leave the file intact when the condition fails. [Fallback proposal](https://github.com/apache/opendal/pull/8296#issuecomment-6239757127) · [RFC 4918 §10.4.4](https://www.rfc-editor.org/rfc/rfc4918.html#section-10.4.4)
*Note: This comment was generated with AI assistance.*
--
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: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Conditional Write WebDAV [opendal]
Posted by "Xuanwo (via GitHub) via commits" <co...@opendal.apache.org>.
Xuanwo closed issue #8324: Conditional Write WebDAV
URL: https://github.com/apache/opendal/issues/8324
--
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: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Conditional Write WebDAV [opendal]
Posted by "QazCetelic (via GitHub)" <gi...@apache.org>.
QazCetelic commented on issue #8324:
URL: https://github.com/apache/opendal/issues/8324#issuecomment-6238547721
I've tested it with a few more services and noticed that some don't properly handle the related HTTP headers. Will research it further to see if there is a workaround.
--
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: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org