Deleted or trashed folders still appear in teams view
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 177
- Forks
- 68
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 60
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.
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.
Research direction
Start with the /ocs/v2.php/teams/{circleId}/resources endpoint and reproduce the issue using the listed steps. Trace how team shares are fetched for the Teams Files list, including the DeleteOrphanedSharesJob behavior. Done means deleted or trashed folders are excluded and valid shared folders still appear without producing broken entries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100