mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +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
|
// Remove bundles
|
||||||
removeAllBundles(context, item);
|
removeAllBundles(context, item);
|
||||||
|
|
||||||
|
// Remove any Handle
|
||||||
|
handleService.unbindHandle(context, item);
|
||||||
|
|
||||||
// remove version attached to the item
|
// remove version attached to the item
|
||||||
removeVersion(context, item);
|
removeVersion(context, item);
|
||||||
|
|
||||||
@@ -624,10 +627,6 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
|
|||||||
item.getCollections().clear();
|
item.getCollections().clear();
|
||||||
item.setOwningCollection(null);
|
item.setOwningCollection(null);
|
||||||
|
|
||||||
// Remove any Handle
|
|
||||||
handleService.unbindHandle(context, item);
|
|
||||||
|
|
||||||
|
|
||||||
// Finally remove item row
|
// Finally remove item row
|
||||||
itemDAO.delete(context, item);
|
itemDAO.delete(context, item);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user