You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Ivan (JIRA)" <ji...@apache.org> on 2010/10/19 08:26:32 UTC

[jira] Assigned: (GERONIMO-5630) Support pincipal copying in Tomcat cluster

     [ https://issues.apache.org/jira/browse/GERONIMO-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan reassigned GERONIMO-5630:
------------------------------

    Assignee: Ivan

> Support pincipal copying in Tomcat cluster
> ------------------------------------------
>
>                 Key: GERONIMO-5630
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5630
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Clustering, Tomcat
>    Affects Versions: 3.0
>            Reporter: Ivan
>            Assignee: Ivan
>
> Seems that Tomcat requires the principal extends GenericPrincipal,  from org.apache.catalina.ha.session.DeltaRequest
> public void setPrincipal(Principal p) {
>         int action = (p==null)?ACTION_REMOVE:ACTION_SET;
>         SerializablePrincipal sp = null;
>         if ( p != null ) {
>             if(p instanceof GenericPrincipal) {
>                 sp = SerializablePrincipal.createPrincipal((GenericPrincipal)p);
>                 if(log.isDebugEnabled())
>                     log.debug(sm.getString("deltaRequest.showPrincipal", p.getName() , getSessionId()));
>             } else
>                 log.error(sm.getString("deltaRequest.wrongPrincipalClass",p.getClass().getName()));
>         }
>         addAction(TYPE_PRINCIPAL,action,NAME_PRINCIPAL,sp);
>     }
> http://www.mail-archive.com/user@geronimo.apache.org/msg14201.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.