mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
bug fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6763 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
7e7f4ddac5
commit
4da8aec86e
3 files changed
+13
-6
No files matched your search
@@ -52,7 +52,7 @@ public class HudsonFilter implements Filter {
|
||||
public void init(FilterConfig filterConfig) throws ServletException {
|
||||
Binding binding = new Binding();
|
||||
binding.setVariable("authenticationManagerProxy", AUTHENTICATION_MANAGER);
|
||||
binding.setVariable("UserDetailsServiceProxy", USER_DETAILS_SERVICE_PROXY);
|
||||
binding.setVariable("userDetailsServiceProxy", USER_DETAILS_SERVICE_PROXY);
|
||||
binding.setVariable("app", Hudson.getInstance());
|
||||
BeanBuilder builder = new BeanBuilder();
|
||||
builder.parse(filterConfig.getServletContext().getResourceAsStream("/WEB-INF/security/SecurityFilters.groovy"),binding);
|
||||
@@ -87,7 +87,10 @@ public class HudsonFilter implements Filter {
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
legacy.destroy();
|
||||
acegi.destroy();
|
||||
// these fields can be null if HudsonFilter.init() fails in the middle
|
||||
if(legacy!=null)
|
||||
legacy.destroy();
|
||||
if(acegi!=null)
|
||||
acegi.destroy();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user