From 216ea4998de9ae4ee603d7f8f5f6725b218ca710 Mon Sep 17 00:00:00 2001 From: vasraz Date: Sat, 22 Jul 2023 13:07:27 +0100 Subject: Implement 'Update Service by importing Tosca Template'-story Signed-off-by: Vasyl Razinkov Change-Id: Ia2842c49cc81eb30174d783805261d0e73835e48 Issue-ID: SDC-4576 --- .../org/openecomp/sdc/common/filters/DataValidatorFilterAbstract.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common-app-api') diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/filters/DataValidatorFilterAbstract.java b/common-app-api/src/main/java/org/openecomp/sdc/common/filters/DataValidatorFilterAbstract.java index 44c0cbb791..d88a156fde 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/filters/DataValidatorFilterAbstract.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/common/filters/DataValidatorFilterAbstract.java @@ -32,6 +32,7 @@ import javax.servlet.ServletResponse; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.ws.rs.HttpMethod; +import javax.ws.rs.core.MediaType; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.openecomp.sdc.common.util.DataValidator; @@ -88,7 +89,7 @@ public abstract class DataValidatorFilterAbstract implements Filter { private boolean skipCheckBody(final HttpServletRequest requestWrapper) { final String contentType = requestWrapper.getContentType(); - return StringUtils.isNotEmpty(contentType) && contentType.contains("multipart/form-data"); + return StringUtils.isNotEmpty(contentType) && contentType.contains(MediaType.MULTIPART_FORM_DATA); } private boolean isValid(final HttpServletRequest request) { -- cgit 1.2.3-korg