-
Bug
-
Resolution: Done
-
Critical
-
7.1.0.DR11
Coverity static-analysis scan found possible dereference null return value in following code
ServerAuthenticationContext.java
if (log.isTraceEnabled()) { log.tracef("Authorizing principal %s.", authenticationPrincipal.getName()); log.tracef("Authorizing against the following attributes: %s => %s", authorizationIdentity.getAttributes().keySet(), authorizationIdentity.getAttributes().values()); }
Coverity suppose null value could get here via AggregateSecurityRealm.Identity.getAuthorizationIdentity calling TokenSecurityRealm.TokenRealmIdentity.getAuthorizationIdentity
TokenRealmIdentity.java
@Override
public AuthorizationIdentity getAuthorizationIdentity() throws RealmUnavailableException {
if (exists()) {
return new AuthorizationIdentity() {
@Override
public Attributes getAttributes() {
return claims;
}
};
}
return null;
}
- is cloned by
-
ELY-955 Coverity static analysis: Dereference null return value in ServerAuthenticationContext (Elytron)
-
- Resolved
-