https://issues.apache.org/bugzilla/show_bug.cgi?id=50803

--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> 2011-02-17 
16:07:16 EST ---
stack trace:
javax.servlet.ServletException: Login failed
    at
org.apache.catalina.authenticator.AuthenticatorBase.doLogin(AuthenticatorBase.java:796)
    at
org.apache.catalina.authenticator.AuthenticatorBase.login(AuthenticatorBase.java:785)
    at org.apache.catalina.connector.Request.login(Request.java:2508)
    at
org.apache.catalina.connector.RequestFacade.login(RequestFacade.java:1066)


Looking at AuthenticatorBase.java:796, the authenticator calls
context.getRealm().authenticate(username, password)
and that method reports unsuccessful authentication by returning null and not
by throwing some exception.

This cannot be solved unless interface of Realm is changed, e.g. by allowing
either null or an exception to be returned.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to