Merge "Get Node API fix for attribute values with '/'"
authorSourabh Sourabh <sourabh.sourabh@est.tech>
Mon, 19 Sep 2022 10:08:46 +0000 (10:08 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 19 Sep 2022 10:08:46 +0000 (10:08 +0000)
1  2 
cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentRepositoryCpsPathQueryImpl.java

@@@ -35,11 -35,10 +35,11 @@@ import org.onap.cps.spi.entities.Fragme
  import org.onap.cps.utils.JsonObjectMapper;
  
  @RequiredArgsConstructor
 +@Slf4j
  public class FragmentRepositoryCpsPathQueryImpl implements FragmentRepositoryCpsPathQuery {
  
-     public static final String SIMILAR_TO_ABSOLUTE_PATH_PREFIX = "%/";
-     public static final String SIMILAR_TO_OPTIONAL_LIST_INDEX_POSTFIX = "(\\[[^/]*])?";
+     public static final String REGEX_ABSOLUTE_PATH_PREFIX = ".*\\/";
+     public static final String REGEX_OPTIONAL_LIST_INDEX_POSTFIX = "(\\[@(?!.*\\[).*?])?$";
  
      @PersistenceContext
      private EntityManager entityManager;