mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 18:44:22 +00:00
DS-2063 SWORD keep-package-on-fail doesn't work for RuntimeExceptions.
https://jira.duraspace.org/browse/DS-2063
This commit is contained in:
@@ -163,6 +163,21 @@ public class DepositManager
|
|||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
catch(SWORDErrorException e)
|
catch(SWORDErrorException e)
|
||||||
|
{
|
||||||
|
if (swordService.getSwordConfig().isKeepPackageOnFailedIngest())
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
storePackageAsFile(deposit);
|
||||||
|
}
|
||||||
|
catch(IOException e2)
|
||||||
|
{
|
||||||
|
log.warn("Unable to store SWORD package as file: " + e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
catch(RuntimeException e)
|
||||||
{
|
{
|
||||||
if (swordService.getSwordConfig().isKeepPackageOnFailedIngest())
|
if (swordService.getSwordConfig().isKeepPackageOnFailedIngest())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user