You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/04/22 15:41:03 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/rundata DefaultTurbineRunData.java
henning 2003/04/22 06:41:03
Modified: src/java/org/apache/turbine/services/rundata
DefaultTurbineRunData.java
Log:
Bug Fix in the Cookie Parser with the internal RunData object,
which was unset. This happened by my over-eager replacement of
the RunData reference with request and response object.
Caught by Panu H�llfors - <pa...@came.fi>
Revision Changes Path
1.15 +9 -2 jakarta-turbine-2/src/java/org/apache/turbine/services/rundata/DefaultTurbineRunData.java
Index: DefaultTurbineRunData.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/rundata/DefaultTurbineRunData.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- DefaultTurbineRunData.java 11 Apr 2003 13:15:10 -0000 1.14
+++ DefaultTurbineRunData.java 22 Apr 2003 13:41:02 -0000 1.15
@@ -449,7 +449,14 @@
if ((this.cookies != null) &&
(this.cookies.getRequest() != getRequest()))
{
- this.cookies.setData(getRequest(), getResponse());
+ // We deprecated the use of the RunData object in
+ // the Cookie Parser. However, until we remove the
+ // RunData access from the Cookie Parser, we must
+ // of course, set the member variable in the Parser
+ // After we removed the code, please replace the
+ // following line with
+ // this.cookies.setData(getRequest(), getResponse());
+ this.cookies.setRunData(this);
}
return this.cookies;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org