Use -dot- subdomain notation in MapReduce console links

appspot.com is not provisioned with a multi-level wildcard SSL certificate, so
URLs of the form https://service.projectid.appspot.com/path need to be rewritten
as https://service-dot-projectid.appspot.com/path (and same for version names).

This is a follow-up to []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=231418795
This commit is contained in:
mcilwain 2019-01-29 09:43:30 -08:00 committed by Michael Muller
parent 6e0b8f2cfd
commit 3812c2ceda
7 changed files with 85 additions and 6 deletions

View file

@ -284,7 +284,10 @@ public class MapreduceRunner {
private String renderMapreduceConsoleLink(String jobId) {
return String.format(
MAPREDUCE_CONSOLE_LINK_FORMAT, appEngineServiceUtils.getServiceHostname("backend"), jobId);
MAPREDUCE_CONSOLE_LINK_FORMAT,
appEngineServiceUtils.convertToSingleSubdomain(
appEngineServiceUtils.getServiceHostname("backend")),
jobId);
}
/**
@ -301,7 +304,7 @@ public class MapreduceRunner {
}
public void sendLinkToMapreduceConsole(Response response) {
response.setPayload(getLinkToMapreduceConsole());
response.setPayload(getLinkToMapreduceConsole() + "\n");
}
public String getLinkToMapreduceConsole() {