You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2008/08/20 02:33:31 UTC

svn commit: r687210 - /portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/attributes/PersistenceBrokerSecurityAttributesProvider.java

Author: taylor
Date: Tue Aug 19 17:33:31 2008
New Revision: 687210

URL: http://svn.apache.org/viewvc?rev=687210&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-869
fixing bug

Modified:
    portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/attributes/PersistenceBrokerSecurityAttributesProvider.java

Modified: portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/attributes/PersistenceBrokerSecurityAttributesProvider.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/attributes/PersistenceBrokerSecurityAttributesProvider.java?rev=687210&r1=687209&r2=687210&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/attributes/PersistenceBrokerSecurityAttributesProvider.java (original)
+++ portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/attributes/PersistenceBrokerSecurityAttributesProvider.java Tue Aug 19 17:33:31 2008
@@ -55,7 +55,7 @@
         
     public SecurityAttributes retrieveAttributes(Principal principal)  throws SecurityException
     {
-        if (!(principal instanceof UserPrincipal))
+        if (!(principal instanceof BasePrincipal))
             throw new SecurityException(
                     SecurityException.UNKNOWN_PRINCIPAL_TYPE.create(principal.getClass().toString())); 
         BasePrincipal bp = (BasePrincipal)principal;
@@ -73,7 +73,7 @@
     
     public SecurityAttributes createSecurityAttributes(Principal principal) throws SecurityException
     {
-        if (!(principal instanceof UserPrincipal))
+        if (!(principal instanceof BasePrincipal))
             throw new SecurityException(
                     SecurityException.UNKNOWN_PRINCIPAL_TYPE.create(principal.getClass().toString())); 
         return new SecurityAttributesImpl(principal, new HashMap<String, SecurityAttribute>());



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org