portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r426655 - /portals/jetspeed-1/trunk/src/java/org/apache/jetspeed/services/profiler/JetspeedProfilerService.java
Date Fri, 28 Jul 2006 19:49:08 GMT
Author: taylor
Date: Fri Jul 28 12:49:07 2006
New Revision: 426655

URL: http://svn.apache.org/viewvc?rev=426655&view=rev
Log:
try to not display the confusing 'profiler error' when db connection is bad

Modified:
    portals/jetspeed-1/trunk/src/java/org/apache/jetspeed/services/profiler/JetspeedProfilerService.java

Modified: portals/jetspeed-1/trunk/src/java/org/apache/jetspeed/services/profiler/JetspeedProfilerService.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-1/trunk/src/java/org/apache/jetspeed/services/profiler/JetspeedProfilerService.java?rev=426655&r1=426654&r2=426655&view=diff
==============================================================================
--- portals/jetspeed-1/trunk/src/java/org/apache/jetspeed/services/profiler/JetspeedProfilerService.java
(original)
+++ portals/jetspeed-1/trunk/src/java/org/apache/jetspeed/services/profiler/JetspeedProfilerService.java
Fri Jul 28 12:49:07 2006
@@ -782,10 +782,18 @@
                     }
                     else
                     {
-                        profile.setAnonymous(
-                            user.getUserName().equals(
-                                JetspeedSecurity.getAnonymousUserName()));
-                        profile.setUser(user);
+                        if (user == null)
+                        {
+                            profile.setAnonymous(true);                                 
  
+                            user = JetspeedSecurity.getAnonymousUser();                 
          
+                        }
+                        else
+                        {
+                            profile.setAnonymous(
+                                user.getUserName().equals(
+                                    JetspeedSecurity.getAnonymousUserName()));
+                            profile.setUser(user);
+                        }
                     }
                 }
             }



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