nextcloud / nextcloud/server

Download an unavailable files in web UI shows new page with 404

Open
#5,444 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop design enhancement feature: files
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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.