You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by ji...@apache.org on 2004/04/17 18:03:29 UTC

[jira] Closed: (CACTUS-30) Error accessing same http session across test methods

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/CACTUS-30

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CACTUS-30
    Summary: Error accessing same http session across test methods
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: WON'T FIX

    Project: Cactus
 Components: 
             Framework
   Fix Fors:
             1.5-beta1
   Versions:
             1.4.1

   Assignee: Vincent Massol
   Reporter: Avinash Chugh

    Created: Mon, 18 Nov 2002 4:50 PM
    Updated: Sat, 17 Apr 2004 9:01 AM
Environment: Operating System: Windows NT/2K
Platform: PC

Description:
Environment: Weblogic 7, Win2k, Cactus 1.4.1

I have a ServletTestCase with two test methods - testLogin(), testLogout().
testlogin calls a doPost on a servlet which logs in user using HTTP request 
parameters, and places an object in session.
When I test assertNotNull for that session attribute, the test succeeds.

testlogout() calls another doPost which and logs the earlier user and 
invalidate the session. But when I do assertNotNull() for the same session 
attribute (before the actual call to servlet), the test fails..

I am using the same servlet...and session.isNew() always returns true 

This leads me to believe..
The HTTPSession created by testLogin() can nolonger be accessed by subsequent 
test method(s) ??

This is a bug..right ??


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org