hyrax
hyrax copied to clipboard
Unable to delete a file from a monograph
Descriptive summary
Hyrax Version: 3.4.0 Hyrax Branch: main Hyrax Revision: 739920c12031bcdbdc8f09343403e19f5f367548
When attempting to delete a file from a monograph, the app crashes with the following error:
When attempting to access the monograph after the deletion failure, the app crashes with the following error:
Rationale
This impedes a user's ability to edit the images attached to a monograph.
Expected behavior
When a user deletes a file attached to a monograph, the file is deleted and the user can access the monograph normally without any failures.
Actual behavior
When you attempt to delete a file (e.g. image file) from a monograph,, the app breaks, and any future attempts to access that monograph fail
Steps to reproduce the behavior
- Go to
Dashboard
- Go to
Works
underRepository Contents
>Works
- Click on
Add New Work
- Select
Monograph
- Fill in the required fields under
Descriptions
and add an image file underFiles
- Save and access the newly created monograph
- On the monograph's show page, under
Items
, find the dropdownSelect an action
next to the image file uploaded with the monograph - Click
Delete
- The app will crash
If you attempt to reaccess the monograph, the app will continue to crash
Related work
NA