Bug 61783 - AuthConfigFactoryImpl.removeRegistration() does not remove from the persistent storage
Summary: AuthConfigFactoryImpl.removeRegistration() does not remove from the persisten...
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.5.23
Hardware: PC All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2017-11-18 14:08 UTC by Lazar Kirchev
Modified: 2017-11-20 18:52 UTC (History)
0 users


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