Download an unavailable files in web UI shows new page with 404
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
- upload a file abc.txt
- delete it from the users folder in the data folder (to simulate that the storage had some problems)
- click on "Download" for this file in the web UI
- expected: "File not found" is shown in the web UI
- actual: a new tab opens and the 404 error page is shown there
@LukasReschke @nickvergessen @nextcloud/designers Does that make sense from a technical as well as from an UX point of view? Or should we see this "a problem happened on the storage level" see as "it's okay to show it in a separate tab".
Should we then maybe remove this file from the file cache if it is not available on the storage? Or better keep it? Or is this more a task for the admin and the occ files:scan command should just be run?
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
Reproduce the issue through the web UI Download action after deleting the file from the users folder in the data folder. Trace how the unavailable file is handled and compare the separate 404 page with the expected in-UI "File not found" message. Clarify whether the file cache should change or files:scan is the intended remedy, then verify the chosen behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- backend, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100