error getting aaf configuration flag
Change-Id: I98c3a3f4abef0f46a4cccf8e79ed58f65f328b2c
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Issue-ID: POLICY-1043
Signed-off-by: Jorge Hernandez <jh1730@att.com>
diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
index 8ddf305..cb58371 100644
--- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
+++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java
@@ -53,7 +53,7 @@
String role = getRole(request);
boolean authorized = request.isUserInRole(role);
- logger.info("user {} in role {} is {}authorized to {}",
+ logger.info("user {} in role {} is {}authorized to {}",
request.getUserPrincipal().getName(), role, ((authorized) ? "" : "NOT "), request.getMethod());
if (!authorized) {
diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/HttpServletServerFactory.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/HttpServletServerFactory.java
index b5c701a..b98ed18 100644
--- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/HttpServletServerFactory.java
+++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/HttpServletServerFactory.java
@@ -230,7 +230,7 @@
+ serviceName + PolicyEndPointProperties.PROPERTY_AAF_SUFFIX);
boolean aaf = false;
if (aafString != null && !aafString.isEmpty()) {
- aaf = Boolean.parseBoolean(httpsString);
+ aaf = Boolean.parseBoolean(aafString);
}
HttpServletServer service = build(serviceName, https, hostName, servicePort, contextUriPath, swagger, managed);