Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329602

Summary: only clear ServletContext attributes on doStop
Product: [RT] Jetty Reporter: David Jencks <david.a.jencks>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 8.0.0   
Target Milestone: 7.1.x   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description David Jencks CLA 2010-11-05 21:33:47 EDT
Currently both ContextHandler.doStart and doStop clear the servlet context attributes. Only one of these is needed to assure that attributes don't carry over when a context is stopped and started.  The geronimo-openwebbeans-jetty integration is setting some servlet context attributes before the context is started, so we need the attributes to not be erased on start.

The ContextHandlerTest is currently checking that both doStart and doStop clear the attributes.  I'm changing this so it checks that doStart does not clear attributes and doStop does.
Comment 1 David Jencks CLA 2010-11-05 21:35:16 EDT
fixed in rev 2472
Comment 2 Greg Wilkins CLA 2010-11-07 22:57:03 EST
fixed in jetty-7 and jetty-8