portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r378572 - /portals/jetspeed-1/trunk/fusion/src/java/org/apache/jetspeed/fusion/engine/servlet/FusionServletRequestImpl.java
Date Fri, 17 Feb 2006 17:04:33 GMT
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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message