summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-09-19 09:38:46 -0500
committerJorge Hernandez <jh1730@att.com>2018-09-19 10:02:24 -0500
commit2f53e137769ec9e658bc7e16a7893c5c35482032 (patch)
treef81a4ca8fe1e2cee1d74fc2839c22a10cea304aa
parente65a996147ba28eb5287564d4a0624a2c20347ea (diff)
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>
-rw-r--r--policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/AuthorizationFilter.java2
-rw-r--r--policy-endpoints/src/main/java/org/onap/policy/common/endpoints/http/server/HttpServletServerFactory.java2
2 files changed, 2 insertions, 2 deletions
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 8ddf305f..cb58371f 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 @@ public abstract class AuthorizationFilter implements Filter {
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 b5c701ac..b98ed180 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 @@ class IndexedHttpServletServerFactory implements HttpServletServerFactory {
+ 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);