-
Notifications
You must be signed in to change notification settings - Fork 539
Cannot delete last Bitstream using new "Edit" menu #5381
Copy link
Copy link
Labels
DSpace-CRIS mergerThis ticket/PR relates to the merger of DSpace-CRIS into DSpace.This ticket/PR relates to the merger of DSpace-CRIS into DSpace.affects: mainIssue impacts "main" (latest release).Issue impacts "main" (latest release).bugclaimed: eScireeScire team is working on this issue & will contribute backeScire team is working on this issue & will contribute back
Metadata
Metadata
Assignees
Labels
DSpace-CRIS mergerThis ticket/PR relates to the merger of DSpace-CRIS into DSpace.This ticket/PR relates to the merger of DSpace-CRIS into DSpace.affects: mainIssue impacts "main" (latest release).Issue impacts "main" (latest release).bugclaimed: eScireeScire team is working on this issue & will contribute backeScire team is working on this issue & will contribute back
Type
Projects
Status
🏗 In Progress
Status
🏗 In Progress
Describe the bug
This issue was found during testing of #5145, the PR which adds this new "Edit" menu (via submission form).
If you use the new Edit (via form) menu to modify an existing Item, and then attempt to delete all the Item's bitstreams, you will find that you cannot delete the final Bitstream (i.e. the Item cannot be left with no bitstreams). While the reason for this behavior is that every Item requires a Bitstream (in the default form), the Edit Form will not display any useful information or errors. This makes the behavior confusing to users.
Workaround: To work around this problem, just add another Bitstream to the Item before deleting the final Bitstream. Bitstream deletions work fine as long as there are multiple Bitstreams.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Any one of these behaviors would be acceptable:
Related work
This "Edit" menu (via submission form) was introduced in #5145.