Hi Rob,

(taking this discussion to the list if you don't mind)

I ran your test bundle and found and issue with resource access
(FELIX-382). Other than that, it seems, that your test bundle runs just
fine.

But another error occurred to me: Should servlets registered with
different OSGi HttpContext instances share HttpSessions or not ? I
assume, they should not. And this is where my solution will probably
break - didn't test it given that the JSESSIONID cookie is located at
the root path, all servlets would probably share the session - unless we
would add some session multiplexing in a HttpServletRequestWrapper which
takes the OSGi HttpContext into account ?

This would just have the minor (?) drawback, that different sessions
with actually the same session ID are used for the servlets of the
different OSGi HttpContext instances.

Regards
Felix

Am Freitag, den 28.09.2007, 15:57 +0100 schrieb Rob Walker:
> You're welcome. Happy hunting.
> 
> This was a bug in the original Oscar code that someone pointed out to
> me, and took some brain scratching to solve. I also seem to recall
> this was the reason for the rather ungainly use of multiple
> registrations under '/' - but my memory could be wrong there..
> 
> I create an "http-test" bundle that had some very simple (and far from
> exhaustive) test cases to check variables got maintained between
> calls.
> 
> I think this is the HTTP Test bundle that's still in the OBR if you
> want it for reference:
> 
> http://oscar-osgi.sourceforge.net/
> 
> Regards
> 
> -- Rob
> 
> Felix Meschberger wrote: 
> > Hi Rob,
> > 
> > Yes, I just posted my response. Thanks for pointing me in that
> > direction. I will look into that issue and if there is something wrong,
> > I will just open a new JIRA for me to solve :-)
> > 
> > Regards
> > Felix
> > 
> > Am Freitag, den 28.09.2007, 15:37 +0100 schrieb Rob Walker:
> >   
> > > Felix
> > > 
> > > Not sure if you saw it, just added a comment on verifying http session 
> > > context / cookie etc. handlinga across multiple requests and browser 
> > > sessions with your new mods.
> > > 
> > > Regards
> > > 
> > > -- Rob
> > > 
> > > 
> > > Ascert - Taking systems to the Edge
> > > [EMAIL PROTECTED]
> > > +44 (0)20 7488 3470
> > > www.ascert.com
> > > 
> > >     
> > 
> >   
> 
> -- 
> 
> 
> Ascert - Taking systems to the Edge
> [EMAIL PROTECTED]
> +44 (0)20 7488 3470
> www.ascert.com

Reply via email to