From e64d2a63e87b95b71154214df175294463de8afb Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 9 Sep 2019 10:05:34 +0200 Subject: [PATCH] fix for external address alias --- .../webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java | 2 +- src/main/resources/config/application-dev-ws.properties | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java index c8be39bf..a98f0ff2 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/MockupLmsAPITemplate.java @@ -131,7 +131,7 @@ final class MockupLmsAPITemplate implements LmsAPITemplate { } private QuizData getExternalAddressAlias(final QuizData quizData) { - final String externalAddressAlias = this.webserviceInfo.getExternalAddressAlias(this.lmsSetup.lmsApiUrl); + final String externalAddressAlias = this.webserviceInfo.getExternalAddressAlias("lms.mockup.com"); if (StringUtils.isNoneBlank(externalAddressAlias)) { try { diff --git a/src/main/resources/config/application-dev-ws.properties b/src/main/resources/config/application-dev-ws.properties index ac783bad..d8fef63b 100644 --- a/src/main/resources/config/application-dev-ws.properties +++ b/src/main/resources/config/application-dev-ws.properties @@ -36,6 +36,7 @@ sebserver.webservice.api.exam.enable-indicator-cache=true sebserver.webservice.api.pagination.maxPageSize=500 # comma separated list of known possible OpenEdX API access token request endpoints sebserver.webservice.lms.openedx.api.token.request.paths=/oauth2/access_token +sebserver.webservice.lms.address.alias=lms.mockup.com=lms.address.alias # actuator configuration management.endpoints.web.base-path=/actuator