[Bug]: Shared user incorrectly shown in sidebar for unrelated files until reload
Open
@sorbaugh is already working on this.
Since May 22, 2025.
0. Needs triage
32-feedback
bug
feature: sharing
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Bug description
When adding a share to a file, the same user is also shown as a sharee in the sidebar for other files; even though those files haven’t been shared with them. This incorrect state is only visible until the page is reloaded.
Steps to reproduce
- Open the sidebar to share a file.
- Pick a user to share with (it's a user from a federated instance in the screencast)
- Click "Save share".
- Open the sidebar for a different file.
- Observe that the same user is incorrectly listed as a sharee.
- Reload the page: the user is no longer listed, as expected.
https://github.com/user-attachments/assets/cc4daf94-baee-4d6d-a374-3cd3624ca64e
Expected behavior
User is only listed for affected file
Nextcloud Server version
621b67987c13c7addffe009d2cc901f90c7adaa5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.