The "Can upload" role was never built — share dialog offers only view and edit (#529 2/3 follow-up) #589
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#589
Loading…
Add table
Add a link
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?
Found in the v0.6.213 live pass.
What happens
Opening the share dialog on a folder (
/home/moverini), the role select beside the recipient picker contains exactly two options:There is no third option.
What #571 specified
So
Can uploadis missing entirely, not merely mis-gated. The folder-only condition cannot be the explanation: this was tested on a folder, and the dialog's own public-link section correctly showsAllow uploads (file drop)for the same folder and correctly hides it for a file — so the folder/file distinction is already wired elsewhere in the same dialog.Notes for the fix
AllowUploadalready exists as a primitive on the public-link side; this is a third label over it on the grant side, not new backend capability. Worth checking first whether the grant model and thePOSTaccept it at all, or whether the backend also stopped at two roles — the API slice (#575) predates the UI, so it may or may not carry it.Allow uploads (file drop)checkbox already uses; reuse that predicate rather than writing a second one, so the two cannot drift.AllowUploadcan be created, the recipient's toolbar must then actually offerUpload file— which today it offers regardless of role. That interaction is #588, and the two should be verified together rather than separately.Reproduce
Closing as superseded — the two-role select is the approved design, not a gap.
This issue was cut against #571's issue body ("Roles as three labels... Can upload →
AllowUpload, the last shown for folders only"), which predates the mockup review. The rev-2 implementation mockup (share-panel-571-mockup-rev2.html, block 0, under "Settled in rev 1, not redrawn here") records the settlement:The implementation matches that settlement exactly, on both sides:
internal/share/share.go: "Role is "read" or "write", reusing spacestore's vocabulary" — andgrantCreatehard-refuses anything else (role must be "read" or "write").Can view/Can edit, and the folder case keeps upload where the settlement put it: theAllow uploads (file drop)checkbox on the public-link section, which correctly appears for folders and not for files.So the code, the backend validation, and the approved mockup all agree with each other; only the issue body from before the review disagreed. Writing the third role now would be implementing superseded intent — the same mistake #124 exists to prevent in docs.
The docs run (#585 / #591) documents two roles as the design, with the mockup's reasoning: "drop files here" workflows are upload links or spaces, not per-person roles.
If a per-person upload role is ever actually wanted, that is a new design decision — reopen against a fresh mockup round, not against this thread.