portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r687210 - /portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/attributes/PersistenceBrokerSecurityAttributesProvider.java
Date Wed, 20 Aug 2008 00:33:31 GMT
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


Mime
View raw message