diff options
author | 2018-07-09 09:08:59 +0000 | |
---|---|---|
committer | 2018-07-09 09:08:59 +0000 | |
commit | 388d7128adc5b3dc7fcab73734082f4f2ab5029b (patch) | |
tree | 197ce163b02b26a08072e75cef1ca85d2d1007ea /src/main/java/org/onap/crud/service/AaiResourceService.java | |
parent | 4b09e9e4fe77a4aa749f1a7ffa07545b64d3e2cb (diff) | |
parent | 0acdb1471fc36039a721f6d1a66b55859ec922de (diff) |
Merge "Fix sonar violations"
Diffstat (limited to 'src/main/java/org/onap/crud/service/AaiResourceService.java')
-rw-r--r-- | src/main/java/org/onap/crud/service/AaiResourceService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/onap/crud/service/AaiResourceService.java b/src/main/java/org/onap/crud/service/AaiResourceService.java index c0375b4..881f9fd 100644 --- a/src/main/java/org/onap/crud/service/AaiResourceService.java +++ b/src/main/java/org/onap/crud/service/AaiResourceService.java @@ -22,6 +22,7 @@ package org.onap.crud.service; import java.security.cert.X509Certificate;
import java.util.AbstractMap;
+import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
@@ -506,7 +507,7 @@ public class AaiResourceService { authUser = subjectDn.toString();
}
- return this.auth.validateRequest(authUser.toLowerCase(), action.toString() + ":" + authPolicyFunctionName);
+ return this.auth.validateRequest(authUser!=null ? authUser.toLowerCase():"", action.toString() + ":" + authPolicyFunctionName);
} catch (Exception e) {
logResult(action, uri, e);
@@ -518,8 +519,7 @@ public class AaiResourceService { logger.error(CrudServiceMsgs.EXCEPTION_DURING_METHOD_CALL,
op.toString(),
- uri,
- e.getStackTrace().toString());
+ uri, Arrays.toString(e.getStackTrace()));
// Clear the MDC context so that no other transaction inadvertently
// uses our transaction id.
|