Author: taylor
Date: Fri Feb 17 09:04:31 2006
New Revision: 378572

URL: http://svn.apache.org/viewcvs?rev=378572&view=rev
Log:
when the user is anonymous, return null from getRemoteUser and getUserPrincipal

Modified:
    
portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java

Modified: 
portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java?rev=378572&r1=378571&r2=378572&view=diff
==============================================================================
--- 
portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
 (original)
+++ 
portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
 Fri Feb 17 09:04:31 2006
@@ -146,7 +146,10 @@
                 Iterator it = principals.iterator();
                 if (it.hasNext())
                 {
-                    return (Principal) it.next();
+                    Principal principal = (Principal) it.next();
+                    if (principal.getName().equals("anon"))
+                        return null;
+                    return principal;
                 }
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to