Repository navigation
feat(ocm): implement the upload coordinator's driver methods for received shares - #946
Merged
Merged
Conversation
butonic
force-pushed
the
port-695-696
branch
2 times, most recently
from
October 30, 2026 10:16
5511c24 to
0e9b583
Compare
dragonchaser
approved these changes
Nov 2, 2026
butonic
force-pushed
the
port-695-696
branch
2 times, most recently
from
November 3, 2026 15:19
567f6ca to
88b81dd
Compare
butonic
force-pushed
the
port-695-696
branch
4 times, most recently
from
November 4, 2026 07:56
a785002 to
061f3e6
Compare
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the upload coordinator stack, see #934.
Received OCM shares now implement
CommitUploadandMarkProcessing, andTouchFileandDeleteresolve the share as the service account. It also fixes two things the coordinator runs into:GetLockreported 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:
received/ocm.go: only where the request carries no share tokenReview 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.