You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/06/29 09:12:29 UTC
svn commit: r202324 -
/portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java
Author: taylor
Date: Wed Jun 29 00:12:27 2005
New Revision: 202324
URL: http://svn.apache.org/viewcvs?rev=202324&view=rev
Log:
rolled back new session assumptions in support of shopping cart app
Modified:
portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java
Modified: portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java?rev=202324&r1=202323&r2=202324&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java (original)
+++ portals/jetspeed-2/trunk/portal/src/java/org/apache/jetspeed/profiler/impl/ProfilerValveImpl.java Wed Jun 29 00:12:27 2005
@@ -79,13 +79,13 @@
if (subject == null)
{
throw new ProfilerException("Missing subject for request: " + request.getPath());
- }
+ }
Principal principal = SecurityHelper.getBestPrincipal(subject, UserPrincipal.class);
if (principal == null)
{
throw new ProfilerException("Missing principal for request: " + request.getPath());
}
-
+
Map locators = null;
String locatorName = (String)request.getAttribute(PROFILE_LOCATOR_REQUEST_ATTR_KEY);
if ( locatorName != null )
@@ -100,13 +100,8 @@
if ( locators == null )
{
- locators = (Map)request.getSessionAttribute(PROFILE_LOCATORS_PER_PRINCIPAL);
- if (locators == null)
- {
- // get all locators for the current user
- locators = profiler.getProfileLocators(request, principal);
- request.setSessionAttribute(PROFILE_LOCATORS_PER_PRINCIPAL, locators);
- }
+ // get all locators for the current user
+ locators = profiler.getProfileLocators(request, principal);
}
if (locators.size() == 0)
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org