Skip to content

SEC-453: CasAuthenticationHandler does not log root cause of AuthenticationException. #714

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mat Lowery(Migrated from SEC-453) said:

Excerpt from org.acegisecurity.adapters.cas3.CasAuthenticationHandler’s authenticateUsernamePasswordInternal() method:
-— excerpt begin -
try {
this.authenticationManager.authenticate(authenticationRequest);
} catch (final org.acegisecurity.AuthenticationException e) {
if (log.isDebugEnabled()) {
log.debug("Authentication request for " + credentials.getUsername() + "failed: " + e.toString());
}

return false;

}
-—- excerpt end -—-

Problems (both with the log.debug() call):
- The log.debug call does not print the stack trace. This could be solved by changing the log.debug() call to:
log.debug("Authentication request for " + credentials.getUsername() + "failed: ", e);
- There needs to be a space between the credentials.getUsername() and the word “failed”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: casAn issue in spring-security-castype: bugA general bugtype: jiraAn issue that was migrated from JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions