aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/main/java/org')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/filters/BeServletFilter.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/filters/BeServletFilter.java b/catalog-be/src/main/java/org/openecomp/sdc/be/filters/BeServletFilter.java
index c60a8d6783..bdee21efc5 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/filters/BeServletFilter.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/filters/BeServletFilter.java
@@ -148,8 +148,10 @@ public class BeServletFilter implements ContainerRequestFilter, ContainerRespons
log.debug("Close transaction from filter");
TitanDao titanDao = getTitanDao();
if (titanDao != null) {
- if (responseContext.getStatus() == Response.Status.OK.getStatusCode() ||
- responseContext.getStatus() == Response.Status.CREATED.getStatusCode()) {
+ int status = responseContext.getStatus();
+ if (status == Response.Status.OK.getStatusCode() ||
+ status == Response.Status.CREATED.getStatusCode() ||
+ status == Response.Status.NO_CONTENT.getStatusCode()) {
titanDao.commit();
log.debug("Doing commit from filter");
} else {