geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-5630) Support pincipal copying in Tomcat cluster
Date Tue, 28 Sep 2010 02:26:32 GMT
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


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.


Mime
View raw message