Skip to content

Commit

Permalink
SECURITY-1686 - [TestComplete] Password stored in plain-text in confi…
Browse files Browse the repository at this point in the history
…g.xml for job (Part 3)
  • Loading branch information
Igor-Filin committed Aug 11, 2020
1 parent ca783d3 commit 0098887
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,12 @@ public String getPluginName() {

@Override
public Builder newInstance(StaplerRequest req, @Nonnull JSONObject formData) throws FormException {
return super.newInstance(req, formData);
TcTestBuilder builder = (TcTestBuilder)super.newInstance(req, formData);
if (!StringUtils.isEmpty(builder.getCredentialsId())) {
builder.setUserName("");
builder.setUserPassword("");
}
return builder;
}

public FormValidation doCheckSuite(@QueryParameter String value) {
Expand Down

0 comments on commit 0098887

Please # to comment.