You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/03/05 19:12:09 UTC

DO NOT REPLY [Bug 27478] - cross context redirects don't reference correct session info when imported context redirects back to original context :

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27478>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27478

cross context redirects don't reference correct session info when imported context redirects back to original context :

adeshpande@clubmom-inc.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|cross context redirects     |cross context redirects
                   |don't work when import      |don't reference correct
                   |context redirects back to   |session info when imported
                   |original context :          |context redirects back to
                   |                            |original context :



------- Additional Comments From adeshpande@clubmom-inc.com  2004-03-05 18:12 -------
2 fixes are necessary --

1)  StandardContext.getContext(String path) does a check for  context==null when
it should be checking for child==null (  a context==null would never fail, and
if it was null, there'd be an NPE long before )

2) The other issue is that cross context requests are set crossContext  by
checking the current context vs. the originating request, instead of the
preceding request, which means that when you import from context A to context B,
then from  B  back to A,  the second import is not considered cross context and
the session information is retrieved from the local session in the (wrong) context. 

I hope this is somewhat explanatory.  Please feel to contact me for clarification.

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