mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Remove extra context.aborts in various rest helpers
This commit is contained in:
@@ -850,10 +850,6 @@ public class BitstreamResource extends Resource
|
||||
{
|
||||
processException("Something get wrong while finding bitstream. SQLException, Message:" + e, context);
|
||||
}
|
||||
finally
|
||||
{
|
||||
context.abort();
|
||||
}
|
||||
return bitstream;
|
||||
}
|
||||
}
|
||||
|
@@ -776,10 +776,6 @@ public class CollectionsResource extends Resource
|
||||
{
|
||||
processException("Something get wrong while finding collection(id=" + id + "). SQLException, Message: " + e, context);
|
||||
}
|
||||
finally
|
||||
{
|
||||
context.abort();
|
||||
}
|
||||
return collection;
|
||||
}
|
||||
}
|
||||
|
@@ -1089,10 +1089,6 @@ public class CommunitiesResource extends Resource
|
||||
{
|
||||
processException("Something get wrong while finding community(id=" + id + "). SQLException, Message:" + e, context);
|
||||
}
|
||||
finally
|
||||
{
|
||||
context.abort();
|
||||
}
|
||||
return community;
|
||||
}
|
||||
}
|
||||
|
@@ -1095,10 +1095,6 @@ public class ItemsResource extends Resource
|
||||
{
|
||||
processException("Something get wrong while finding item(id=" + id + "). SQLException, Message: " + e, context);
|
||||
}
|
||||
finally
|
||||
{
|
||||
context.abort();
|
||||
}
|
||||
return item;
|
||||
}
|
||||
}
|
||||
|
@@ -136,11 +136,6 @@ public class Resource
|
||||
{
|
||||
processException("Could not write usageEvent, ContextException. Message: " + e.getMessage(), context);
|
||||
}
|
||||
finally
|
||||
{
|
||||
context.abort();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user