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

Bug 338068

Summary: Leaking ConstraintMappings on redeploy
Product: [RT] Jetty Reporter: Simone Bordet <simone.bordet>
Component: serverAssignee: Simone Bordet <simone.bordet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.3.0   
Target Milestone: 7.3.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Simone Bordet CLA 2011-02-24 06:10:28 EST
Instances of ConstraintMappings are leaked on redeploy when processing the default web.xml (which contains a security constraint).
Method ConstraintSecurityHandler.addConstraintMapping() is called and fills a Map, but this map is never cleared on context stop.
Comment 1 Simone Bordet CLA 2011-02-24 06:25:32 EST
Fixed by overriding doStop() and clearing the Maps.
Also cleaned up code from unused variables and typos.