portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/profiler/impl ProfilerValveImpl.java
Date Mon, 29 Nov 2004 07:11:27 GMT
taylor      2004/11/28 23:11:26

  Modified:    portal/src/java/org/apache/jetspeed/profiler/impl
                        ProfilerValveImpl.java
  Log:
  redirect on session time outs to the default folder
  
  Revision  Changes    Path
  1.22      +10 -2     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java
  
  Index: ProfilerValveImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ProfilerValveImpl.java	25 Nov 2004 02:25:59 -0000	1.21
  +++ ProfilerValveImpl.java	29 Nov 2004 07:11:26 -0000	1.22
  @@ -134,9 +134,17 @@
           }
           catch (SecurityException se)
           {
  +            if (request.getRequest().getUserPrincipal() == null &&
  +                request.getPath() != null &&
  +                !request.getPath().equals("/"))
  +            {
  +                request.setPath("/");
  +                invoke(request, context); 
  +                return;
  +            }
               log.error(se.getMessage(), se);
               try
  -            {
  +            {                
                   request.getResponse().sendError(HttpServletResponse.SC_FORBIDDEN, se.getMessage());
               }
               catch (IOException ioe)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message