improved the code catching error on deleting VRE folder ID, see #24902
This commit is contained in:
parent
cb9ae34034
commit
a65c4a86da
|
@ -820,6 +820,13 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
|
|||
log.info("Deleting Fileset Folder ID {} ",fs.getFolderId());
|
||||
new WorkspaceManager().deleteItem(fs.getFolderId());
|
||||
}catch (Exception e) {
|
||||
//Updated by Francesco. See #24902
|
||||
LifecycleInformation info = doc.getLifecycleInformation();
|
||||
if(info==null) {
|
||||
info = new LifecycleInformation();
|
||||
}
|
||||
info.addErrorMessage("Unable to delete the Folder ID "+fs.getFolderId()+" in the VRE Folder");
|
||||
info.setLastOperationStatus(LifecycleInformation.Status.WARNING);
|
||||
log.warn("Error on deleting the Folder ID {} in the VRE Folder",fs.getFolderId(), e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue