Hi Vincent I've included the cvs diff below. Ran this from a windows cvs client, so I hope the output is OK. Pls let me know what you think.
The reason for the change is that the application server creates a session for each of the three requests that's associated with running a test : The first to check whether the container is running, the second to request the test to execute and the third to get the result. The change will invalidate the session on the server side for the first and third requests. Since I could find no way to access these session objects in my ServletTestCase-derived class (it's inside the webImplicitObjects), I figured that these sessions were not intended to be used by any user of the framework anyway (pls correct me if I'm wrong). I've left doTest() alone, since the session bound to requests served by this method can be accessed in teardown() and invalidated if needed. Here's the diff : cvs diff -w -i AbstractWebTestCaller.java (in directory D:\dev\cactus-example-dynamo\cactus source\jakarta-cvs\jakarta-cactus\framework\src\java\share\org\apache\cactus\server\) Index: AbstractWebTestCaller.java =================================================================== RCS file: /home/cvspublic/jakarta-cactus/framework/src/java/share/org/apache/cactus/server/AbstractWebTestCaller.java,v retrieving revision 1.23 diff -w -i -r1.23 AbstractWebTestCaller.java 203a204,205 > webImplicitObjects.getHttpServletRequest().getSession(false).invalidate(); > 231a234 > webImplicitObjects.getHttpServletRequest().getSession(false).invalidate(); *****CVS exited normally with code 1***** Regards Jacques --- Vincent Massol <[EMAIL PROTECTED]> wrote: > Hi Jacques, > > This is great. The best way is to send a patch > against CVS HEAD to this > mailing list, with a subject starting with [PATCH]. > > Please have a look at > http://jakarta.apache.org/cactus/participating/index.html > for more > information. > > Thanks > -Vincent > > > -----Original Message----- > > From: jacques [mailto:[EMAIL PROTECTED] > > Sent: 27 August 2003 15:40 > > To: cactus > > Subject: how do i go about commiting code changes > to the project ? > > > > Hi there > > > > I had to change a few lines of code in the Cactus > > project. I would like to know whether these > changes > > could be added to the project, since they might > > improve the workings of the framework. How do I go > > about doing this ? > > > > Regards > > Jacques > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Search - Faster. Easier. Bingo. > > http://search.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
