Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338068 - Leaking ConstraintMappings on redeploy
Summary: Leaking ConstraintMappings on redeploy
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.3.x   Edit
Assignee: Simone Bordet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 06:10 EST by Simone Bordet CLA
Modified: 2011-02-24 06:25 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 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.