mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
[DS-1814] move unbindhandle first, its fix stale exception due to the unbind identifier done after remove version (remove version itself unbind handle many times)
This commit is contained in:
@@ -609,6 +609,9 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
|
||||
// Remove bundles
|
||||
removeAllBundles(context, item);
|
||||
|
||||
// Remove any Handle
|
||||
handleService.unbindHandle(context, item);
|
||||
|
||||
// remove version attached to the item
|
||||
removeVersion(context, item);
|
||||
|
||||
@@ -624,10 +627,6 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
|
||||
item.getCollections().clear();
|
||||
item.setOwningCollection(null);
|
||||
|
||||
// Remove any Handle
|
||||
handleService.unbindHandle(context, item);
|
||||
|
||||
|
||||
// Finally remove item row
|
||||
itemDAO.delete(context, item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user