You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Nelson, Luke" <Lu...@itssiemens.com> on 2003/11/24 22:14:23 UTC

9077 Patch

> Did you actually test it ?

Rémy, I started two of my jsp applications.  Logged into one, then accessed the other (which automatically signs me in because of the SingleSignOn.)  Waited for one minute (my timeout interval), and the sessions expired without throwing any exceptions.  Next, I logged in again under both applications (the same as before), but manually logged out by invalidating the session.  Again, no exception were thrown.  To be fair, I'm using Tomcat 4.1.27 with a few patches applied.  I do not know how this would behave in Tomcat 5.0.

Hopefully Brian can take the patch I added, and test it under 5.0 since he indicated he was available to make the change.

Luke


> -----Original Message-----
> From: Remy Maucherat [mailto:remm@apache.org]
> Sent: Monday, November 24, 2003 1:49 PM
> To: Tomcat Developers List
> Subject: Re: cvs commit: jakarta-tomcat-
> catalina/catalina/src/share/org/apache/catalina/authenti cator
> SingleSignOnEntry.java AuthenticatorBase.java BasicAuthenticator.java
> DigestAuthenticator.java FormAuthenticator.java NonLoginAuthenticator.java
> SSLAut
> 
> Nelson, Luke wrote:
> 
> > Brian, I believe I just fixed those issues.  See the latest patch to
> > 9077.
> 
> Did you actually test it ? Your patch calls getLastModified, does this
> really work if the session *did* timeout (and as such is no longer valid)
> ?
> 
> Rémy
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


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


Re: 9077 Patch

Posted by Brian Stansberry <br...@wanconcepts.com>.
At 10:29 PM 11/24/2003 +0100, you wrote:
>Nelson, Luke wrote:
>>Hopefully Brian can take the patch I added, and test it under 5.0
>>since he indicated he was available to make the change.
>
>That would be good. I can apply a verified TC 5 patch tomorrow if you can post one. Otherwise, the issue won't be fixed in 5.0.15.

TC 5 version of patch tested posted to bug 9077.  Thanks Luke!  Turns out the issue with the IllegalStateException was easily solved; my note attached to the bug report explains.

Best,

Brian Stansberry
WAN Concepts, Inc.
www.wanconcepts.com
Tel:    (510) 894-0114 x 116
Fax:    (510) 797-3005 


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


Re: 9077 Patch

Posted by Brian Stansberry <br...@wanconcepts.com>.
At 10:29 PM 11/24/2003 +0100, you wrote:
>Nelson, Luke wrote:
>
>>Hopefully Brian can take the patch I added, and test it under 5.0
>>since he indicated he was available to make the change.
>
>That would be good. I can apply a verified TC 5 patch tomorrow if you can post one. Otherwise, the issue won't be fixed in 5.0.15.

Yes, I'm working on this and have integrated Luke's patch w/ the TC5 SSO version.  Had to run out and fix a customer's broken network, but I'll be on this the rest of the day.

But, the IllegalStateException issue needs to be resolved.  Luke, your patch has no problem in TC4 because the IllegalStateException in getLastAccessedTime() was added in TC5.  Off the top of my head, I can think of only 1 potential workaround, which is to move the logic that throws the exception to HttpSessionFacade; this complies with the javadoc version that specifies the exception in javax.servlet.http.HttpSession but leaves the method in StandardSession available for internal use anytime.  Kind of a hack, and it changes the behavior of the public API of StandardSession.  But, the exception throw is not specified in the javadoc for interface o.a.c.Session, and a quick look at the TC5 usages of o.a.c.Session.getLastAccessedTime() shows a few calls to the method that 1) aren't making any obvious tests for session validity before invoking it; and 2) aren't catching IllegalStateException.

1) JDBCStore.save()
2) ManagerBase.getLastAccessedTime()
3) PersistentValve.isSessionStale()

Or we can hope the final spec matches the JSR154-PFD3 javadoc, and not the J2EE1.4 docs on the Sun site ;-)

Any thoughts?


Brian Stansberry
WAN Concepts, Inc.
www.wanconcepts.com
Tel:    (510) 894-0114 x 116
Fax:    (510) 797-3005 


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


Re: 9077 Patch

Posted by Remy Maucherat <re...@apache.org>.
Nelson, Luke wrote:
>> Did you actually test it ?
> 
> Rémy, I started two of my jsp applications.  Logged into one, then
> accessed the other (which automatically signs me in because of the
> SingleSignOn.)  Waited for one minute (my timeout interval), and the
> sessions expired without throwing any exceptions.  Next, I logged in
> again under both applications (the same as before), but manually
> logged out by invalidating the session.  Again, no exception were
> thrown.  To be fair, I'm using Tomcat 4.1.27 with a few patches
> applied.  I do not know how this would behave in Tomcat 5.0.
> 
> Hopefully Brian can take the patch I added, and test it under 5.0
> since he indicated he was available to make the change.

That would be good. I can apply a verified TC 5 patch tomorrow if you 
can post one. Otherwise, the issue won't be fixed in 5.0.15.

Rémy



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