From: Pamela Dragosh Date: Fri, 8 Jun 2018 19:00:59 +0000 (+0000) Subject: Merge "Decryption messages should not be errors" X-Git-Tag: 1.3.0~77 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=commitdiff_plain;h=c02881e7e7a0a01b5450caa04ef850438e6a299b;hp=6b4bd454d6ecce00410fad11035ece0846b5b589 Merge "Decryption messages should not be errors" --- diff --git a/BRMSGateway/src/main/resources/logback.xml b/BRMSGateway/src/main/resources/logback.xml index 2d592c0e2..b9e12a7b3 100644 --- a/BRMSGateway/src/main/resources/logback.xml +++ b/BRMSGateway/src/main/resources/logback.xml @@ -75,7 +75,7 @@ --> - + diff --git a/ONAP-PAP-REST/src/main/resources/logback.xml b/ONAP-PAP-REST/src/main/resources/logback.xml index 24afa5538..d7b118178 100644 --- a/ONAP-PAP-REST/src/main/resources/logback.xml +++ b/ONAP-PAP-REST/src/main/resources/logback.xml @@ -75,7 +75,7 @@ --> - + diff --git a/ONAP-PDP-REST/src/main/resources/logback.xml b/ONAP-PDP-REST/src/main/resources/logback.xml index abcebff3f..23f870d37 100644 --- a/ONAP-PDP-REST/src/main/resources/logback.xml +++ b/ONAP-PDP-REST/src/main/resources/logback.xml @@ -74,7 +74,7 @@ --> - + diff --git a/ONAP-PDP/src/test/resources/logback.xml b/ONAP-PDP/src/test/resources/logback.xml index 03e9c0442..93f0a10b8 100644 --- a/ONAP-PDP/src/test/resources/logback.xml +++ b/ONAP-PDP/src/test/resources/logback.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= ONAP-PDP ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -75,7 +75,7 @@ --> - + diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/util/PolicyValidation.java b/ONAP-REST/src/main/java/org/onap/policy/rest/util/PolicyValidation.java index 2e685d423..50985b12d 100644 --- a/ONAP-REST/src/main/java/org/onap/policy/rest/util/PolicyValidation.java +++ b/ONAP-REST/src/main/java/org/onap/policy/rest/util/PolicyValidation.java @@ -1085,9 +1085,11 @@ public class PolicyValidation { final JsonNode value = field.getValue(); if (value.isContainerNode() && !value.isArray()) { + jsonRequestMap.put(key, "containerNode"); pullModelJsonKeyPairs(value); // RECURSIVE CALL } else if (value.isArray()) { try { + jsonRequestMap.put(key, "array"); String stringValue = StringUtils.replaceEach(value.toString(), new String[]{"[", "]"}, new String[]{"",""}); ObjectMapper mapper = new ObjectMapper(); JsonNode newValue = mapper.readTree(stringValue); @@ -1098,8 +1100,7 @@ public class PolicyValidation { } else { jsonRequestMap.put(key, value.toString().trim()); } - } - + } } private JsonObject stringToJsonObject(String value) { diff --git a/ONAP-XACML/src/test/resources/logback.xml b/ONAP-XACML/src/test/resources/logback.xml index cd8e69414..cdfdac958 100644 --- a/ONAP-XACML/src/test/resources/logback.xml +++ b/ONAP-XACML/src/test/resources/logback.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= ONAP-XACML ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -75,7 +75,7 @@ --> - + diff --git a/POLICY-SDK-APP/src/test/resources/logback.xml b/POLICY-SDK-APP/src/test/resources/logback.xml index 3e5f1b6a6..fc73b6af2 100644 --- a/POLICY-SDK-APP/src/test/resources/logback.xml +++ b/POLICY-SDK-APP/src/test/resources/logback.xml @@ -2,7 +2,7 @@ ============LICENSE_START======================================================= ONAP-PAP-REST ================================================================================ - Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -75,7 +75,7 @@ --> - + diff --git a/PolicyEngineAPI/src/main/resources/logback.xml b/PolicyEngineAPI/src/main/resources/logback.xml index 37261edd7..88e062cd8 100644 --- a/PolicyEngineAPI/src/main/resources/logback.xml +++ b/PolicyEngineAPI/src/main/resources/logback.xml @@ -75,7 +75,7 @@ --> - +