Commit ebc1eec6 authored by Piotr Gawron's avatar Piotr Gawron

when removing check for broader exception

parent 731b9fc8
......@@ -5,6 +5,8 @@ minerva (14.0.6) stable; urgency=medium
annotators (#1047)
* Bug fix: if map has SHOW OVERVIEW, the legend/comment/clear were not
displayed at all (regresion 14.0.5, #1045)
* Bug fix: when there is a problem with database during removing project,
project removal doesn't hang (#1058)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 18 Dec 2019 12:00:00 +0200
......
......@@ -290,7 +290,7 @@ public class ProjectService implements IProjectService {
}
modelService.removeModelFromCacheByProjectId(p.getProjectId());
} catch (HibernateException e) {
} catch (PersistenceException e) {
logger.error("Problem with database", e);
handleHibernateExceptionRemovingReporting(project, e);
} finally {
......@@ -591,7 +591,7 @@ public class ProjectService implements IProjectService {
* project that was being removed
* @param exception
*/
protected void handleHibernateExceptionRemovingReporting(Project originalProject, HibernateException exception) {
protected void handleHibernateExceptionRemovingReporting(Project originalProject, PersistenceException exception) {
// we need to open separate thread because current one thrown db exception
// and transaction is corrupted and will be rolledback
Thread reportInSeparateThread = new Thread(new Runnable() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment