Skip to content

port TouchFile permission check for new files - #909

Merged
micbar merged 2 commits into
opencloud-eu:mainfrom
butonic:port-732
Oct 23, 2026
Merged

micbar merged 2 commits into
opencloud-eu:mainfrom
butonic:port-732

Conversation

@butonic

@butonic butonic commented Oct 23, 2026

Copy link
Copy Markdown
Member

For a new file, TouchFile assembled the permissions on the target node
before it existed. That node has no ID, so reading its grants failed and
logged an error on every upload, even though the walk up to the parent
still granted the upload. TouchFile now checks the parent directory
when the file does not exist yet.

Applied to both decomposedfs copies (pkg/storage/utils/decomposedfs
and pkg/storage/pkg/decomposedfs). A new TouchFile spec in each copy
fails when the permissions are assembled on the not-yet-existing node.

This PR was written with the help of Claude Code.

LarsJurgensen and others added 2 commits October 23, 2026 14:05
… fork

Apply the fix to the pkg fork and cover both copies with a spec that
fails when the permissions are assembled on the not-yet-existing node.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic requested a review from aduffeck October 23, 2026 12:37
@butonic butonic self-assigned this Oct 23, 2026
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Oct 23, 2026
@butonic butonic moved this from Qualification to Needs Review in OpenCloud Team Board Oct 23, 2026
@micbar
micbar merged commit 7c65339 into opencloud-eu:main Oct 23, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in OpenCloud Team Board Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants