Activity drill-down is always empty — /api/v1/activity returns [] although the audit log records the events #673
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#673
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 by the #656 QA pass (v0.6.247, both dogfoods).
Matrix row: §3 Details pane — "Activity drill-down | Open Activity | Recent events for the file".
Steps
_qa: uploadqa-large-110MB.bin, createqa-sheet.xlsx, and save it twice in Collabora.GET /api/v1/activity?path=/home/_qa/qa-sheet.xlsx&limit=50→200 {"items":[]}. The unfilteredGET /api/v1/activity?limit=5is also{"items":[]}, and so is the folder/home/_qa.GET /api/v1/admin/audit?limit=3in the same session does list the events:write /home/nikola-test/_qa/qa-sheet.xlsxat 02:58:37Z,read …/qa-word.docx, etc./api/v1/activity?limit=5is also{"items":[]}.Expected: recent events for the file (upload, edits).
Seen: nothing ever appears. Hypothesis, not verified: the activity query filters by the UI's virtual path (
/home/_qa/…), while audit events are stored under the storage path (/home/nikola-test/_qa/…). That is the same/homenamespace seam as #662. Even so, the unfiltered call being empty suggests the feed is also user-scoped or source-filtered in a way that drops these events.Side note: trying the storage-form path (
/home/nikola-test/_qa/qa-sheet.xlsx) or the relative form returns404 not found: file does not exist, so only the virtual form resolves.Screenshot:
activity-empty.jpgSupporting evidence from the bao audit log (Query tab, 03:28Z). The two path namespaces are mixed inside the audit log itself:
office-open /home/_qa/qa-word.docx(virtual)write /home/nikola-test/_qa/qa-word.docx(storage)read /home/nikola-test/_qa/qa-word.docx(storage)/shared/nikola-test/qa-drop.txtA per-file activity query can only match one of these forms, which fits the always-empty drill-down. Screenshot:
656-audit-query-bao.jpg.