-
Notifications
You must be signed in to change notification settings - Fork 62
Deleted or trashed folders still appear in teams view #2408
Copy link
Copy link
Open
Labels
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
When a folder shared with a team is deleted or moved to the trashbin, it still appears in the Teams view. Clicking it results in a "File not found" error. This affects places that fetch and display team resources using /ocs/v2.php/teams/{circleId}/resources e. g. the Teams Files list in Contacts / Teams. For the trashbin this persists until the trash is cleared, for deleted files they are displayed until the DeleteOrphanedSharesJob cleans the shares without files.
Steps to reproduce
- Create a team
- Create a folder, share it with the team, either directly or in Contacts / Teams / Create Folder
- Delete the folder (optionally also empty the trashbin)
- The folder is still listed in Contacts / Teams in the
Fileslist - Clicking it shows "File not found"
Expected behaviour
Folders that no longer exist or are in the trashbin should not be shown in the files list.
Actual behaviour
The view lists all circle shares from the database without checking whether the underlying file is still accessible, resulting in broken entries being shown.
Reactions are currently unavailable