Skip to content

fix(admin_audit): log the real and owner path of files in shares and … - #65805

Open
GhassenKefi wants to merge 1 commit into
masterfrom
fix/admin-audit-owner-path
Open

GhassenKefi wants to merge 1 commit into
masterfrom
fix/admin-audit-owner-path

Conversation

@GhassenKefi

Copy link
Copy Markdown
Contributor

…group folders

File entries only contained the path as seen by the acting user, so access to a file through a share or inside a group folder could not be traced back to where the file is stored.

File and preview entries now add the location of the file in its storage as "realPath" (relative to the data directory on local storage, e.g. "__groupfolders/1/files/a.txt", otherwise prefixed with the storage id) and append it to the message. Files in home storages are left as they are. Files accessed through a share also get "ownerPath", the path as seen by the share owner. Copy and rename entries get the old/new variants of both.

Assisted-by: ClaudeCode:claude-opus-5-5

  • Resolves: #

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…group folders

File entries only contained the path as seen by the acting user, so
access to a file through a share or inside a group folder could not be
traced back to where the file is stored.

File and preview entries now add the location of the file in its
storage as "realPath" (relative to the data directory on local storage,
e.g. "__groupfolders/1/files/a.txt", otherwise prefixed with the storage
id) and append it to the message. Files in home storages are left as
they are. Files accessed through a share also get "ownerPath", the path
as seen by the share owner. Copy and rename entries get the old/new
variants of both.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ghassen kefi <ghassen.kefi.dev@gmail.com>
@GhassenKefi GhassenKefi added this to the Nextcloud 36 milestone Oct 23, 2026
@GhassenKefi GhassenKefi self-assigned this Oct 23, 2026
@GhassenKefi
GhassenKefi requested a review from a team as a code owner October 23, 2026 09:31
@GhassenKefi GhassenKefi added enhancement 3. to review Waiting for reviews labels Oct 23, 2026
@GhassenKefi
GhassenKefi requested review from icewind1991 and removed request for a team October 23, 2026 09:31
@GhassenKefi
GhassenKefi requested a review from susnux October 23, 2026 09:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant