portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r587982 - /portals/jetspeed-2/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/TestAuthenticationProviderProxy.java
Date Wed, 24 Oct 2007 19:49:08 GMT
Author: ate
Date: Wed Oct 24 12:49:08 2007
New Revision: 587982

URL: http://svn.apache.org/viewvc?rev=587982&view=rev
Log:
Fixing cleanup of textdata: removal of the "guest" user is not allowed

Modified:
    portals/jetspeed-2/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/TestAuthenticationProviderProxy.java

Modified: portals/jetspeed-2/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/TestAuthenticationProviderProxy.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/TestAuthenticationProviderProxy.java?rev=587982&r1=587981&r2=587982&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/TestAuthenticationProviderProxy.java
(original)
+++ portals/jetspeed-2/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/TestAuthenticationProviderProxy.java
Wed Oct 24 12:49:08 2007
@@ -334,7 +334,10 @@
             {
                 user = (User) userIter.next();
                 userName = SecurityHelper.getPrincipal(user.getSubject(), UserPrincipal.class).getName();
-                ums.removeUser(userName);
+                if (!userName.equals(ums.getAnonymousUser()))
+                {
+                    ums.removeUser(userName);
+                }
             }
         }
         catch (SecurityException e)



---------------------------------------------------------------------
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