diff options
author | vasraz <vasyl.razinkov@est.tech> | 2023-07-22 13:07:27 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-07-28 13:00:55 +0000 |
commit | 216ea4998de9ae4ee603d7f8f5f6725b218ca710 (patch) | |
tree | 891920a916a6301836061e29f6154b5973431f99 /common-app-api/src/main/java/org | |
parent | 47317bba3db6c7426a5461aa6c20716bf7db8c96 (diff) |
Implement 'Update Service by importing Tosca Template'-story
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Ia2842c49cc81eb30174d783805261d0e73835e48
Issue-ID: SDC-4576
Diffstat (limited to 'common-app-api/src/main/java/org')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/common/filters/DataValidatorFilterAbstract.java | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |