Bug 61783

Summary: AuthConfigFactoryImpl.removeRegistration() does not remove from the persistent storage
Product: Tomcat 8 Reporter: Lazar Kirchev <lazar.kirchev>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 8.5.23   
Target Milestone: ----   
Hardware: PC   
OS: All   

Description Lazar Kirchev 2017-11-18 14:08:04 UTC
AuthConfigFactoryImpl.removeRegistration() removes the registration from the in-memory structures, but in case the registration is persistent it should also remove the provider from the persistent storage. 

The result is that even when a provider is removed, if the providers list is reloaded from persistent storage the removed provider appears again.
Comment 1 Lazar Kirchev 2017-11-18 14:09:46 UTC
This pull request contains a test case which illustrates the problem and a fix for it: https://github.com/apache/tomcat/pull/91
Comment 2 Mark Thomas 2017-11-20 18:52:04 UTC
Once again, many thanks.

Fixed in:
- trunk for 9.0.2 onwards
- 8.5.x for 8.5.24 onwards