ate 2005/01/12 03:56:21 Modified: portal/src/java/org/apache/jetspeed/profiler/impl ProfilerValveImpl.java Log: Fix for JS2-184: Profiling a different page (root in this case) than what maches the current request url results in the PortalURL being out of sync with it. PortletURLs generated by the PortalURL then are no longer valid! We *must* keep the PortalURL path in sync with the profiled page. Solved by sending a client side redirect instead. Revision Changes Path 1.23 +6 -3 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.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- ProfilerValveImpl.java 29 Nov 2004 07:11:26 -0000 1.22 +++ ProfilerValveImpl.java 12 Jan 2005 11:56:20 -0000 1.23 @@ -138,8 +138,11 @@ request.getPath() != null && !request.getPath().equals("/")) { - request.setPath("/"); - invoke(request, context); + try + { + request.getResponse().sendRedirect(request.getRequest().getContextPath()); + } + catch (IOException ioe){} return; } log.error(se.getMessage(), se);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]