From adb7f7496af6e71e1cced44ee2f7485c9917a806 Mon Sep 17 00:00:00 2001 From: vasraz Date: Tue, 15 Aug 2023 18:01:22 +0100 Subject: Add DOT to property's name permitted chars Signed-off-by: Vasyl Razinkov Change-Id: Ib17edf63731832064003430c6f33e9ec58fca696 Issue-ID: SDC-4597 --- .../org/openecomp/sdc/be/components/impl/ResourceImportManager.java | 2 +- .../src/main/java/org/openecomp/sdc/be/servlets/BeGenericServlet.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'catalog-be/src/main/java') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java index d75b59be85..1e2cea5c64 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceImportManager.java @@ -116,7 +116,7 @@ import org.yaml.snakeyaml.Yaml; @org.springframework.stereotype.Component("resourceImportManager") public class ResourceImportManager { - static final Pattern PROPERTY_NAME_PATTERN_IGNORE_LENGTH = Pattern.compile("['\\w\\s\\-\\:]+"); + static final Pattern PROPERTY_NAME_PATTERN_IGNORE_LENGTH = Pattern.compile("['\\w\\s\\-\\.\\:]+"); private static final Logger log = Logger.getLogger(ResourceImportManager.class); private final InterfaceDefinitionHandler interfaceDefinitionHandler; private final ComponentsUtils componentsUtils; diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/BeGenericServlet.java b/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/BeGenericServlet.java index 2cd2ddf978..da7b11fe3e 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/BeGenericServlet.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/BeGenericServlet.java @@ -85,7 +85,7 @@ import org.springframework.web.context.WebApplicationContext; public class BeGenericServlet extends BasicServlet { private static final Logger log = Logger.getLogger(BeGenericServlet.class); - private static final String PROPERTY_NAME_REGEX = "[a-zA-Z0-9_:-@]+"; + private static final String PROPERTY_NAME_REGEX = "[a-zA-Z0-9._:-@]+"; @Context protected HttpServletRequest servletRequest; protected ComponentsUtils componentsUtils; -- cgit 1.2.3-korg