nextcloud / nextcloud/server

[Bug]: Shared user incorrectly shown in sidebar for unrelated files until reload

Open
#53,037 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Open the sidebar to share a file.
  2. Pick a user to share with (it's a user from a federated instance in the screencast)
  3. Click "Save share".
  4. Open the sidebar for a different file.
  5. Observe that the same user is incorrectly listed as a sharee.
  6. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.