Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.3.1, 3.2.4
-
MOODLE_23_STABLE, MOODLE_32_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
MDL-35290-master -
-
3.4 Sprint 4
Description
If some how a file added to my private files gets broken in the system the error shown completely breaks the usage of my private files. A user cannot view existing files, can't fix the broken file and can't access existing files. See screen shot.
This is not useable for the user's perspective. The my private files should fail much more gracefully, providing the user with the option to remove the file, upload a new file, or skip interacting with the file and at least use all other files that have been added.
Replication steps:
- Upload a file via my private files
- Locate the entry in the files table and get the content hash
- Use the content hash to locate the file in the files directory in the data directory.
- Modify the file in the file system to have no read permissions or rename the file
- Navigate to my private files
Alternative:
- Setup dropbox repository with an application api key and secret
- Add a file to my private files
- Modify dropbox repository settings to use a new application api key and secret
- Navigate to my private files