Seafile cannot receive a federated share from Cairn (#1070 follow-up) #1091

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

Problem. Seafile reads only protocol.options.sharedSecret and sharedBy from a share notification. It takes the sender's domain from sharedBy.split('@')[-1] and joins it with /ocm-provider/ as a URL. Cairn sends sender and owner as <user>@<fqdn>, with no sharedBy and no scheme. So Seafile is expected to fail before any WebDAV request (INFERRED from seahub's code).

Since #1070, the grant surface itself is ready for Seafile: Basic with padded colons works, and so does PROPFIND without Depth.

Today. Cairn sends the options form only when the peer's discovery parses as legacy. A Seafile whose discovery says 1.1 without publicKey would get the webdav form instead.

Proposal (research first).

  • Find out what Seafile's discovery document says, and what Seafile expects in sharedBy.
  • Check whether adding sharedBy breaks Nextcloud or ownCloud.
  • Then send it for Seafile-like peers, or for all old-form peers if harmless.
  • Add Seafile to the interop matrix.

Acceptance. A share from Cairn appears in Seafile and opens. Prove it with a live check, or with a recorded seahub request flow in a test.

Refs: #1070, research-1070.md §1.4, §6.1.10 (c).

**Problem.** Seafile reads only `protocol.options.sharedSecret` and `sharedBy` from a share notification. It takes the sender's domain from `sharedBy.split('@')[-1]` and joins it with `/ocm-provider/` as a URL. Cairn sends `sender` and `owner` as `<user>@<fqdn>`, with no `sharedBy` and no scheme. So Seafile is expected to fail before any WebDAV request (INFERRED from seahub's code). Since #1070, the grant surface itself is ready for Seafile: Basic with padded colons works, and so does PROPFIND without Depth. **Today.** Cairn sends the options form only when the peer's discovery parses as legacy. A Seafile whose discovery says 1.1 without `publicKey` would get the webdav form instead. **Proposal (research first).** - Find out what Seafile's discovery document says, and what Seafile expects in `sharedBy`. - Check whether adding `sharedBy` breaks Nextcloud or ownCloud. - Then send it for Seafile-like peers, or for all old-form peers if harmless. - Add Seafile to the interop matrix. **Acceptance.** A share from Cairn appears in Seafile and opens. Prove it with a live check, or with a recorded seahub request flow in a test. Refs: #1070, research-1070.md §1.4, §6.1.10 (c).
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#1091
No description provided.