Skip to content

Commit

Permalink
[JENKINS-59017] disable ForceSetupWizardFilter if setup complete (jen…
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanSukonnov authored and oleg-nenashev committed Sep 13, 2019
1 parent 69a524a commit e6aecfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/jenkins/install/SetupWizard.java
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ public void init(FilterConfig cfg) throws ServletException {
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
// Force root requests to the setup wizard
if (request instanceof HttpServletRequest) {
if (request instanceof HttpServletRequest && !Jenkins.get().getInstallState().isSetupComplete()) {
HttpServletRequest req = (HttpServletRequest) request;
String requestURI = req.getRequestURI();
if (requestURI.equals(req.getContextPath()) && !requestURI.endsWith("/")) {
Expand Down

0 comments on commit e6aecfe

Please sign in to comment.