B-7 Root folder ownership bug in multi-member tenants #38
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#38
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GetRootFolder.cs:43-58: tenant root selected with no OwnerId filter; first member to call becomes Owner; subsequent members get a root they don't own → uploads to root return 403 (UploadFile.cs:41-54, CreateUploadUrl share check) and nothing repairs ownership. Also :17-39 silently auto-creates a Personal tenant and re-points user.TenantId for any tenant-less user (can collide with pending invitations).
Fix: per-member root semantics or ownerless tenant roots (decide with task 1.1 account-state model); gate tenant auto-creation behind the new org model (no_workspace state supersedes it). Full findings + evidence: docs/redesign/2026-11-onboarding-passkey/08-code-baseline-review.md