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 --- .../openecomp/sdc/be/filters/BeServletFilter.java | 6 +++-- catalog-be/src/main/webapp/WEB-INF/web.xml | 27 ---------------------- 2 files changed, 4 insertions(+), 29 deletions(-) (limited to 'catalog-be/src') 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 { diff --git a/catalog-be/src/main/webapp/WEB-INF/web.xml b/catalog-be/src/main/webapp/WEB-INF/web.xml index 93c5194c0c..027601b952 100644 --- a/catalog-be/src/main/webapp/WEB-INF/web.xml +++ b/catalog-be/src/main/webapp/WEB-INF/web.xml @@ -148,14 +148,6 @@ 2 - - - ECOMPServlet - org.onap.portalsdk.core.onboarding.crossapi.PortalRestAPIProxy - 3 - true - - ViewStatusMessages ch.qos.logback.classic.ViewStatusMessagesServlet @@ -167,25 +159,6 @@ /lbClassicStatus - - contextConfigLocation classpath:application-context.xml -- cgit 1.2.3-korg