Web UI: hide /.trash from the file browser (Deleted files has its own view) #75

Closed
opened 2026-07-30 03:29:32 +00:00 by Cordy · 0 comments
Owner

Dogfood finding (Nikola, 2026-07-30): .trash/ shows up as an ordinary folder in Personal.

Why it appears: the trash decorator hides /.trash from non-admins only, and admins are unscoped — so an admin's Personal view is the backend root, .trash included. Correct at the storage layer (admins need raw access for "empty trash" and recovery), wrong as UX: trash has a dedicated Deleted files sidebar view, and browsing the raw entries — opaque <id>.data / <id>.meta pairs — is never what someone wants from the file list.

Fix in the web UI: filter the .trash entry out of directory listings and search results. Raw access stays available over the admin API/WebDAV for the operator paths that need it, and the Deleted files view is unaffected.

Dogfood finding (Nikola, 2026-07-30): `.trash/` shows up as an ordinary folder in Personal. Why it appears: the trash decorator hides `/.trash` from **non-admins** only, and admins are unscoped — so an admin's Personal view is the backend root, `.trash` included. Correct at the storage layer (admins need raw access for "empty trash" and recovery), wrong as UX: trash has a dedicated **Deleted files** sidebar view, and browsing the raw entries — opaque `<id>.data` / `<id>.meta` pairs — is never what someone wants from the file list. Fix in the web UI: filter the `.trash` entry out of directory listings and search results. Raw access stays available over the admin API/WebDAV for the operator paths that need it, and the Deleted files view is unaffected.
Cordy closed this issue 2026-07-30 04:05:28 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#75
No description provided.