quintonm 2003/03/20 10:28:04
Modified: src/java/org/apache/turbine/services/pull
TurbinePullService.java
Log:
Added comment about the session pull tools being lost after the login action and
possible
ways to fix it.
Revision Changes Path
1.21 +9 -2
jakarta-turbine-2/src/java/org/apache/turbine/services/pull/TurbinePullService.java
Index: TurbinePullService.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/pull/TurbinePullService.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- TurbinePullService.java 20 Mar 2003 18:26:01 -0000 1.20
+++ TurbinePullService.java 20 Mar 2003 18:28:04 -0000 1.21
@@ -395,9 +395,16 @@
//
// Session Tool start right at the session once the user has been set
- // while persistent and authorized Tools are started when the user has
logged in
+ // while persistent and authorized Tools are started when the user has
+ // logged in
//
User user = data.getUser();
+
+ // Note: Session tools are cuurently lost after the login action
+ // because the anonymous user is replaced the the real user object.
+ // We should either store the session pull tools in the session or
+ // make Turbine.loginAction() copy the session pull tools into the
+ // new user object.
populateWithSessionTools(sessionTools, context, data, user, false);
if (!TurbineSecurity.isAnonymousUser(user))
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]