WebDAV: conditional headers on DELETE, MOVE and COPY (If-Match, If-None-Match, RFC 4918 If) #957

Open
opened 2026-10-17 16:24:59 +00:00 by Cordy · 0 comments
Owner

Split from #951 by Nikola's decision (2026-10-17).

#951 checks If-Match and If-None-Match on PUT, plus the WOPI timestamp, at the commit step. These cases are out of its scope:

  • If-Match and If-None-Match on DELETE, MOVE and COPY. The research for #951 found no client that sends them, and a delete goes to trash anyway.
  • The RFC 4918 If header (tagged lists, lock tokens). Cairn ignores it today.
  • Weak ETags (W/) in If-Match: Cairn accepts them, although RFC 9110 forbids that. Decided: document this behaviour rather than change it.

To do:

  • Evaluate the conditions under the path lock for each method, where the method has a commit step.
  • Answer 412 when a condition fails.
  • Add tests with racing writers.

Low priority. Research: ~/cairn-work/scratch/b7e/backlog/research-951.md.

Split from #951 by Nikola's decision (2026-10-17). #951 checks If-Match and If-None-Match on PUT, plus the WOPI timestamp, at the commit step. These cases are out of its scope: - `If-Match` and `If-None-Match` on DELETE, MOVE and COPY. The research for #951 found no client that sends them, and a delete goes to trash anyway. - The RFC 4918 `If` header (tagged lists, lock tokens). Cairn ignores it today. - Weak ETags (`W/`) in If-Match: Cairn accepts them, although RFC 9110 forbids that. Decided: document this behaviour rather than change it. To do: - Evaluate the conditions under the path lock for each method, where the method has a commit step. - Answer 412 when a condition fails. - Add tests with racing writers. Low priority. Research: `~/cairn-work/scratch/b7e/backlog/research-951.md`.
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#957
No description provided.