tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34107] New: - session already invalidated before valueUnbound() called
Date Mon, 21 Mar 2005 15:41:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34107>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34107

           Summary: session already invalidated before valueUnbound() called
           Product: Tomcat 5
           Version: 5.0.28
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bmilbratz@outstart.com


This may not be a bug, as it appears the servlet 2.4 spec is not precise on this
matter.

The issue is that in previous versions of Tomcat and Weblogic an implementation
of javax.servlet.http.HttpSessionBindingListener could successfully make this call:

   public void valueUnbound(HttpSessionBindingEvent event)
   {
      long lastAccessedTime =  event.getSession().getLastAccessedTime();

In Tomcat 5, the Session is already invalidated by the time the container calls
'valueUnbound', so the call to getLastAccessedTime() fails.


Sections 7.4-7.6 of the 2.4 servlet specification do not precisely specify
whether or not the session is valid at the time the container calls valueUnbound().

This code has functioned fine in previous versions of Catalina/Tomcat as well as
weblogic. 

I have a code workaround for this, but wanted to determine if this was an issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message