Delete and rename inside a writable federated share (#1070 follow-up) #1093

Open
opened 2026-11-03 05:32:57 +00:00 by Cordy · 0 comments
Owner

Problem. In OCM, write means create, update and delete. Since #1070 a Nextcloud user is expected to upload files and create folders in a writable Cairn share (live check pending). Rename (MOVE) and delete (DELETE) still answer 405. oc:permissions tells Nextcloud this by leaving out D.

Today.

  • grant.go allows GET, HEAD, PUT, PROPFIND, MKCOL and OPTIONS.
  • sharePerms gives a write folder SGWCK / 7, a write file SGW / 3, and ocm:share-permissions ["read","write"].

Proposal (research and mockup first, since it touches #1057's Deleted files).

  • DELETE moves the item into the owner's Deleted files, with the share's provenance, restorable and audited.
  • MOVE works only inside the same share, never out of it.
  • Legal hold, locks and quota apply as for WebDAV.
  • oc:permissions gains D and ocs:share-permissions the matching delete bit (folder 15, file 11), but only once both methods work, so parsePermissions(oc) == ocs still holds.

Acceptance.

  • From Nextcloud, delete a file and a folder: they appear in the owner's Deleted files.
  • Rename and move inside the share work.
  • A Destination outside the share is refused.
  • Read shares are unchanged.

Refs: #1070 (Q6), #1057, research-1070.md §6.3 Q6.

**Problem.** In OCM, `write` means create, update and delete. Since #1070 a Nextcloud user is expected to upload files and create folders in a writable Cairn share (live check pending). Rename (MOVE) and delete (DELETE) still answer 405. `oc:permissions` tells Nextcloud this by leaving out `D`. **Today.** - `grant.go` allows GET, HEAD, PUT, PROPFIND, MKCOL and OPTIONS. - `sharePerms` gives a write folder `SGWCK` / `7`, a write file `SGW` / `3`, and `ocm:share-permissions` `["read","write"]`. **Proposal (research and mockup first, since it touches #1057's Deleted files).** - DELETE moves the item into the owner's Deleted files, with the share's provenance, restorable and audited. - MOVE works only inside the same share, never out of it. - Legal hold, locks and quota apply as for WebDAV. - `oc:permissions` gains `D` and `ocs:share-permissions` the matching delete bit (folder 15, file 11), but only once both methods work, so `parsePermissions(oc) == ocs` still holds. **Acceptance.** - From Nextcloud, delete a file and a folder: they appear in the owner's Deleted files. - Rename and move inside the share work. - A Destination outside the share is refused. - Read shares are unchanged. Refs: #1070 (Q6), #1057, research-1070.md §6.3 Q6.
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#1093
No description provided.