Commit 15bfb13
fix(swordv2): guard against double-delete in ContainerManagerDSpace.removeItem
Deleting a SWORDv2 item with WorkflowManagerDefault deleted the item twice and
the second itemService.delete() threw. The fix -- deleteAll on the workspace
path plus an isItemAlreadyDeleted guard before the final delete -- was present
on dtq-dev via f79e704 and reverted by the #1031 7.6.5 upgrade merge, while
the two Swordv2IT tests that cover it were left behind. This restores the
reverted delta (identical to customer/zcu-pub 66af883).
Not taken from zcu-pub: its SwordUrlManager changes -- dtq-dev is ahead there.
Port of dataquest-dev/dspace-customers#903 (item 3).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 6114281 commit 15bfb13
1 file changed
Lines changed: 26 additions & 3 deletions
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
755 | 757 | | |
756 | 758 | | |
757 | 759 | | |
758 | | - | |
| 760 | + | |
| 761 | + | |
759 | 762 | | |
760 | 763 | | |
761 | 764 | | |
762 | 765 | | |
763 | 766 | | |
764 | | - | |
765 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
766 | 773 | | |
767 | 774 | | |
768 | 775 | | |
| |||
788 | 795 | | |
789 | 796 | | |
790 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
791 | 814 | | |
0 commit comments