Skip to content
Permalink
Browse files
IGNITE-16829 Support configurable mail smtp host, disabling auth and …
…SSL+ test feature: Fix for email escaping
  • Loading branch information
dspavlov committed Apr 22, 2022
1 parent 95c25a8 commit 10c2b995589dad04cb021209ee5a871b491844c6
Showing 2 changed files with 3 additions and 7 deletions.
@@ -28,7 +28,7 @@
public static final String GITHUB_REF = "https://github.com/apache/ignite-teamcity-bot";

/** TC Bot Version. */
public static final String VERSION = "20220414";
public static final String VERSION = "20220422";

/** Java version, where Web App is running. */
public String javaVer;
@@ -33,10 +33,7 @@

import javax.annotation.security.PermitAll;
import javax.servlet.ServletContext;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import java.util.ArrayList;
@@ -129,9 +126,8 @@ public SimpleResult testSlackNotification() {
}

@POST
@PermitAll
@Path("testEmailNotification")
public SimpleResult testEmailNotification(String address) {
public SimpleResult testEmailNotification(@FormParam("address") String address) {
IEmailSender emailSender = CtxListener.getInjector(ctx).getInstance(IEmailSender.class);

ITcBotConfig tcBotConfig = CtxListener.getInjector(ctx).getInstance(ITcBotConfig.class);

0 comments on commit 10c2b99

Please sign in to comment.