You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/03/07 09:40:46 UTC
DO NOT REPLY [Bug 52846] New: Programmatic login using
UserDatabaseRealm returns 403 error.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52846
Bug #: 52846
Summary: Programmatic login using UserDatabaseRealm returns 403
error.
Product: Tomcat 7
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: kfujino@apache.org
Classification: Unclassified
IMHO,HttpServletRequest#login does not need to define a <login-config>.
NonLoginAuthenticator is used when <login-config> is not specified in
HttpServletRequest#login.
When UserDatabaseRealm is used, not GenericPrincipal but Memory User is set to
a session.
In AuthenticatorBase#invoke, principal registered into a session is set to a
request.
Because MemoryUser is set to a request as principal, RealmBase#hasRole always
returns false.
As a result, 403 error is 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52846] Programmatic login using UserDatabaseRealm
returns 403 error.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52846
Keiichi Fujino <kf...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Keiichi Fujino <kf...@apache.org> 2012-03-07 09:25:24 UTC ---
Fixed in 7.0.x and will be in 7.0.27 onwards.
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52846] Programmatic login using UserDatabaseRealm
returns 403 error.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52846
--- Comment #1 from Keiichi Fujino <kf...@apache.org> 2012-03-07 08:46:26 UTC ---
Created attachment 28427
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28427
patch against 7.0 trunk
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org