From 3edb71cfc640b32a7cea3ee0823350ef19dd7694 Mon Sep 17 00:00:00 2001 From: Tal Gitelman Date: Wed, 7 Nov 2018 15:41:55 +0200 Subject: Error displayed on deleting VF/VFC - from Service Composition Change-Id: I48c2256b0584c69b94c870eefd834eaf2891f56d Issue-ID: SDC-1888 Signed-off-by: Tal Gitelman --- .../src/main/java/org/openecomp/sdc/be/filters/BeServletFilter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'catalog-be/src/main/java/org') 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 { -- cgit 1.2.3-korg