Fix handling of special characters in prefix names 79/135379/3
authordanielhanrahan <daniel.hanrahan@est.tech>
Wed, 12 Jul 2023 15:11:07 +0000 (16:11 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 13 Jul 2023 10:38:53 +0000 (11:38 +0100)
commitd45fe759ba6d693fcaa9247f89d28c6a3162b2c0
tree89faa0dfaf1719ed754e05a0d0e00273fe3033eb
parent46d25a52084252a7bb34f084e75bcdd100e7c9ab
Fix handling of special characters in prefix names

This fixes issues with special characters like square brackets
- Make PrefixResolver use CpsPathParser instead of regex
- Make DataMapUtils use CpsPathParser instead of String parsing

Issue-ID: CPS-1758
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6dd66eee398a46a69c0229059195f5096ab6fdec
cps-service/src/main/java/org/onap/cps/utils/DataMapUtils.java
cps-service/src/main/java/org/onap/cps/utils/PrefixResolver.java
cps-service/src/test/groovy/org/onap/cps/utils/DataMapUtilsSpec.groovy
cps-service/src/test/groovy/org/onap/cps/utils/PrefixResolverSpec.groovy