summaryrefslogtreecommitdiffstats
path: root/catalog-be/src
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/filters/BeServletFilter.java6
-rw-r--r--catalog-be/src/main/webapp/WEB-INF/web.xml27
2 files changed, 4 insertions, 29 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 {
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 @@
<load-on-startup>2</load-on-startup>
</servlet>
- <!-- ECOMP Portal -->
- <servlet>
- <servlet-name>ECOMPServlet</servlet-name>
- <servlet-class>org.onap.portalsdk.core.onboarding.crossapi.PortalRestAPIProxy</servlet-class>
- <load-on-startup>3</load-on-startup>
- <async-supported>true</async-supported>
- </servlet>
-
<servlet>
<servlet-name>ViewStatusMessages</servlet-name>
<servlet-class>ch.qos.logback.classic.ViewStatusMessagesServlet</servlet-class>
@@ -167,25 +159,6 @@
<url-pattern>/lbClassicStatus</url-pattern>
</servlet-mapping>
-<!-- <filter>
- <filter-name>GzipFilter</filter-name>
- <filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class>
- <async-supported>true</async-supported>
- <init-param>
- <param-name>methods</param-name>
- <param-value>GET,POST,PUT,DELETE</param-value>
- </init-param>
- <init-param>
- <param-name>mimeTypes</param-name>
- <param-value>text/html,text/plain,text/css,application/javascript,application/json</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>GzipFilter</filter-name>
- <url-pattern>/sdc2/rest/*</url-pattern>
- </filter-mapping>
--->
-
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:application-context.xml</param-value>