Skip to content

Commit

Permalink
Merge pull request #1854 from drbobrinkman/TRUNK-2877
Browse files Browse the repository at this point in the history
TRUNK-2877 Don't set password values in the UI in the installation wizard
  • Loading branch information
dkayiwa committed Oct 12, 2016
2 parents 1f3727b + f767793 commit 4fba636
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ protected void doGet(HttpServletRequest httpRequest, HttpServletResponse httpRes
renderTemplate(PROGRESS_VM, referenceMap, httpResponse);
} else if (page == null) {
httpResponse.setContentType("text/html");// if any body has already started installation

//If someone came straight here without setting the hidden page input,
// then we need to clear out all the passwords
clearPasswords();

renderTemplate(DEFAULT_PAGE, referenceMap, httpResponse);
} else if (INSTALL_METHOD.equals(page)) {
// get props and render the second page
Expand Down Expand Up @@ -358,6 +363,14 @@ private void loadInstallationScriptIfPresent() {
}
}

private void clearPasswords(){
wizardModel.databaseRootPassword = "";
wizardModel.createDatabasePassword = "";
wizardModel.createUserPassword = "";
wizardModel.currentDatabasePassword = "";
wizardModel.remotePassword = "";
}

/**
* Called by {@link #doFilter(ServletRequest, ServletResponse, FilterChain)} on POST requests
*
Expand Down

0 comments on commit 4fba636

Please sign in to comment.