aboutsummaryrefslogtreecommitdiffstats
path: root/tutorials/tutorial-xacml-application
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2022-02-11 08:53:57 +0000
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>2022-02-11 09:29:32 +0000
commitfca2e06f2a01c03ba0d12271defaec0b5ab13ba5 (patch)
tree6e5d98e874d17fe982e619077a3949c10321b683 /tutorials/tutorial-xacml-application
parentd8ed7a991d54bd6e53a7c1fedee808ab78dfdf19 (diff)
Fix xacml pdp to accommodate Object values in policy metadata
Issue-ID: POLICY-3832 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I276bf28d3fdaad6e1d7cde315cdb049343cbde3f
Diffstat (limited to 'tutorials/tutorial-xacml-application')
-rw-r--r--tutorials/tutorial-xacml-application/src/main/java/org/onap/policy/tutorial/tutorial/TutorialTranslator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorials/tutorial-xacml-application/src/main/java/org/onap/policy/tutorial/tutorial/TutorialTranslator.java b/tutorials/tutorial-xacml-application/src/main/java/org/onap/policy/tutorial/tutorial/TutorialTranslator.java
index 327a507a..b30dd943 100644
--- a/tutorials/tutorial-xacml-application/src/main/java/org/onap/policy/tutorial/tutorial/TutorialTranslator.java
+++ b/tutorials/tutorial-xacml-application/src/main/java/org/onap/policy/tutorial/tutorial/TutorialTranslator.java
@@ -76,8 +76,8 @@ public class TutorialTranslator extends StdBaseTranslator {
// Here is our policy with a version and default combining algo
//
var newPolicyType = new PolicyType();
- newPolicyType.setPolicyId(toscaPolicy.getMetadata().get("policy-id"));
- newPolicyType.setVersion(toscaPolicy.getMetadata().get("policy-version"));
+ newPolicyType.setPolicyId(String.valueOf(toscaPolicy.getMetadata().get("policy-id")));
+ newPolicyType.setVersion(String.valueOf(toscaPolicy.getMetadata().get("policy-version")));
//
// When choosing the rule combining algorithm, be sure to be mindful of the
// setting xacml.att.policyFinderFactory.combineRootPolicies in the