[Bug]: File list partially missing after opening a file in viewer until scroll
Open
Nobody has claimed this yet.
1. to develop
30-feedback
31-feedback
32-feedback
bug
feature: files
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Bug description
File list partially missing after opening a file in viewer until scroll. Some folders that were previously visible become invisible. The file list appears truncated or partially blank.
Steps to reproduce
- Have viewer and files_pdfviewer
- Go to the Files app
- Create a new folder named "Documents" and open it
- Upload one or more files (PDF or text) that can be opened in the viewer
- Create several subfolders such as "Dossier A", "Dossier B", "Dossier C", ... , "Dossier P" (the documents, to be opened, must not be visible when opening the folder).
- Click on the folder name in the breadcrumbs (make sure you see the folder’s ID in the URL)
- Scroll down to the uploaded file
- Click the file to open it in the viewer
https://github.com/user-attachments/assets/d7fa3259-8ccb-4fc4-8034-c73c4dd1c22e
Expected behavior
No blank list.
Nextcloud Server version
32 / 31 / 30
Additional info
- Scrolling (with the mouse or keyboard) makes the missing folders reappear.
- After opening the file once, the file ID in the URL is replaced. If the page is reloaded at this point, the list loads correctly and no truncation occurs.
- Debug output shows that in the broken case the startIndex is 17, while in the working case it is 4.
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 by reproducing the issue in the Files app with files_pdfviewer, following the listed folder, breadcrumb, and viewer steps. Compare the broken and reloaded cases, including the startIndex values and file ID in the URL; done means the file list remains complete without requiring scrolling.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100