Skip to content

Commit

Permalink
Fix deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerwowen committed Jul 23, 2024
1 parent b3cdacf commit 545d185
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions deploy-service/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
<artifactId>commons-collections4</artifactId>
<version>4.5.0-M1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.text.StringEscapeUtils;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
Expand Down Expand Up @@ -273,7 +273,7 @@ public String getDescription() {

public void setDescription(String description) {
// Escape user input which could contain injected Javascript
this.description = StringEscapeUtils.escapeHtml(description);
this.description = StringEscapeUtils.escapeHtml4(description);
}

public String getBuild_name() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public List<BuildTagBean> load(String buildName) { // no checked exception
}
catch (Exception ex){
LOG.error(ExceptionUtils.getRootCauseMessage(ex));
LOG.error(ExceptionUtils.getFullStackTrace(ex));
LOG.error(ExceptionUtils.getStackTrace(ex));
}
return new ArrayList<BuildTagBean>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public Response alertsTriggered(@PathParam("envName") String envName,
userName));
} catch (Exception ex) {
LOG.error("Failed to perform action {}", ExceptionUtils.getRootCauseMessage(ex));
LOG.error(ExceptionUtils.getFullStackTrace(ex));
LOG.error(ExceptionUtils.getStackTrace(ex));
}
}

Expand Down

0 comments on commit 545d185

Please sign in to comment.