Merge branch 'hotfix-aggregate' into develop

master
Yixian 3 years ago
commit ac403511ad

@ -2700,6 +2700,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
public void writeAggregatePoster(JSONObject manager, String clientMoniker, OutputStream ous) {
JSONObject client = clientDetail(manager, clientMoniker);
try {
logger.debug("downloading aggregate poster from {}", clientMoniker);
HttpRequestResult boardBackgroundResult = new HttpRequestGenerator(
PlatformEnvironment.getEnv().concatUrl("/static/images/new_aggregate_poster.png"), RequestMethod.GET).execute();
if (boardBackgroundResult.isSuccess()) {
@ -2710,10 +2711,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
ous.flush();
IOUtils.closeQuietly(ous);
} else {
logger.error("get aggregate poster file failed:[{}]", boardBackgroundResult.getStatusCode(),
logger.error("get aggregate poster file failed:[{}]-{}", boardBackgroundResult.getStatusCode(),
boardBackgroundResult.getResponseContentString(), boardBackgroundResult.getException());
}
} catch (IOException e) {
logger.error("get aggregate poster file failed:{}", e.getMessage(), e);
throw new ServerErrorException("Error", e);
}
}

Loading…
Cancel
Save