]
Scott M Stark reassigned JBAS-1537:
-----------------------------------
Assignee: Scott M Stark (was: Anil Saldhana)
When Tomcat error handler is invoked, JBossGenericPrincipal is
returned instead of custom principal
---------------------------------------------------------------------------------------------------
Key: JBAS-1537
URL:
http://jira.jboss.com/jira/browse/JBAS-1537
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web (Tomcat) service
Affects Versions: JBossAS-4.0.1 Final
Environment: linux i386, jdk 1.4.2_07
Reporter: Rick Wong
Assigned To: Scott M Stark
Fix For: JBossAS-4.2.0.CR1
Hi,
I followed the instruction in the Wiki to set up a custom principal
http://www.jboss.org/wiki/Wiki.jsp?page=UsingCustomPrincpalsWith
Normally, this works perfectly such that the call to
request.getUserPrincipal()
returns my custom principal type. However, if a JSP error page is invoked either by the
default error handler in the web.xml, or by the JSP declaration, a different Principal
object is returned.
A call to request.getUserPrincipal() in the error handler results in an object of type
org.jboss.web.tomcat.security.JBossGenericPrincipal
Is this by design? Shouldn't it also return my custom attribute?
Thanks,
--
Rick
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: