Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329602 - only clear ServletContext attributes on doStop
Summary: only clear ServletContext attributes on doStop
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 8.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 7.1.x   Edit
Assignee: Greg Wilkins CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-05 21:33 EDT by David Jencks CLA
Modified: 2010-11-07 22:57 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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