Commit 9ccf632a authored by Adrien's avatar Adrien Committed by GitHub
Browse files

fix(bdm) ensure that all exception are catched when BDM is deployed, to avoid...

fix(bdm) ensure that all exception are catched when BDM is deployed, to avoid false positive (#2286)

[STUDIO-3535](https://bonitasoft.atlassian.net/browse/STUDIO-3535)
parent db059909
......@@ -161,11 +161,11 @@ public class DeployBDMOperation implements IRunnableWithProgress {
tenantManagementAPI.installBusinessDataModel(fileStore.toByteArray());
}
tenantManagementAPI.resume();
} catch (final Exception e) {
} catch (final Throwable e) {
try {
tenantManagementAPI.uninstallBusinessDataModel();
} catch (final BusinessDataRepositoryDeploymentException e1) {
// ignore exception
} catch (Throwable e1) {
// ignored, we want to fire the first exception.
}
throw new InvocationTargetException(e);
} finally {
......
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