Skip to content

feat(ocm): implement the upload coordinator's driver methods for received shares - #946

Merged
butonic merged 3 commits into
port-702from
port-695-696
Nov 4, 2026
Merged

butonic merged 3 commits into
port-702from
port-695-696

Conversation

@butonic

@butonic butonic commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Part of the upload coordinator stack, see #934.

Received OCM shares now implement CommitUpload and MarkProcessing, and TouchFile and Delete resolve the share as the service account. It also fixes two things the coordinator runs into: GetLock reported an unlocked file as locked by an empty (or <nil>) token, so every overwrite failed with 423, and the stat at the end of an upload has no token, so it now goes through the service account too.

Review focus:

  • the service account use in received/ocm.go: only where the request carries no share token

Review commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.

stacked on #945

Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.

@butonic
butonic added this pull request to stack #950 October 29, 2026 14:05
@butonic butonic added the Type:Maintenance E.g. technical debt, packaging, etc. label Oct 29, 2026
@butonic
butonic removed this pull request from stack #950 October 29, 2026 14:19
@butonic
butonic added this pull request to stack #952 October 29, 2026 14:19
@butonic
butonic force-pushed the port-695-696 branch 2 times, most recently from 5511c24 to 0e9b583 Compare October 30, 2026 10:16
@butonic
butonic force-pushed the port-695-696 branch 2 times, most recently from 567f6ca to 88b81dd Compare November 3, 2026 15:19
@butonic butonic changed the title port the upload driver methods for received OCM shares feat(ocm): implement the upload coordinator's driver methods for received shares Nov 3, 2026
@butonic
butonic force-pushed the port-695-696 branch 4 times, most recently from a785002 to 061f3e6 Compare November 4, 2026 07:56
f-firas and others added 3 commits November 4, 2026 10:27
The coordinator checks the lock of a file before an upload, and stats
the file when it finishes the upload. GetLock reported an unlocked file
as locked by an empty token, so every upload to an existing file failed
with 423. And the stat at finish runs with the upload's executant but
without a token, so looking up the share failed and the upload with it.
Report an unlocked file as unlocked, also when gowebdav formats the
missing lock property as "<nil>", and stat via the service account
when there is no token.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic merged commit 1168881 into workpackages Nov 4, 2026
19 checks passed
@butonic
butonic deleted the port-695-696 branch November 4, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants