diff --git a/docker/demo/application-demo.properties b/docker/demo/application-demo.properties
index 25b4251f..d3852f3f 100644
--- a/docker/demo/application-demo.properties
+++ b/docker/demo/application-demo.properties
@@ -47,6 +47,7 @@ management.endpoints.web.base-path=/actuator
management.endpoints.web.exposure.include=logfile,loggers
# GUI server configuration
+sebserver.gui.external.messages=file:/sebserver/messages
sebserver.gui.entrypoint=/gui
sebserver.gui.webservice.protocol=http
sebserver.gui.webservice.address=${server.address}
diff --git a/docker/demo/docker-compose.yml b/docker/demo/docker-compose.yml
index af308a42..be2c1fad 100644
--- a/docker/demo/docker-compose.yml
+++ b/docker/demo/docker-compose.yml
@@ -27,7 +27,6 @@ services:
volumes:
- ./application-demo.properties:/sebserver/application-demo.properties
- ./messages_en.properties:/sebserver/messages_en.properties
- - ./messages.properties:/sebserver/messages.properties
ports:
- 8080:8080
- 9090:9090
diff --git a/docker/demo/messages.properties b/docker/demo/messages.properties
deleted file mode 100644
index d3f5a12f..00000000
--- a/docker/demo/messages.properties
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/RAPSpringConfig.java b/src/main/java/ch/ethz/seb/sebserver/gui/RAPSpringConfig.java
index b953abd7..f044387f 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/RAPSpringConfig.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/RAPSpringConfig.java
@@ -15,7 +15,6 @@ import javax.servlet.ServletException;
import org.eclipse.rap.rwt.engine.RWTServlet;
import org.eclipse.rap.rwt.engine.RWTServletContextListener;
import org.springframework.beans.factory.annotation.Value;
-import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
@@ -33,6 +32,9 @@ public class RAPSpringConfig {
@Value("${sebserver.gui.entrypoint}")
private String entrypoint;
+ @Value("${sebserver.gui.external.messages:messages}")
+ private String externalMessagesPath;
+
@Bean
public ServletContextInitializer initializer() {
return new RAPServletContextInitializer();
@@ -52,9 +54,15 @@ public class RAPSpringConfig {
}
@Bean
- @ConfigurationProperties("spring.messages")
public MessageSource messageSource() {
- return new ReloadableResourceBundleMessageSource();
+ final ReloadableResourceBundleMessageSource reloadableResourceBundleMessageSource =
+ new ReloadableResourceBundleMessageSource();
+
+ reloadableResourceBundleMessageSource.setBasenames(
+ this.externalMessagesPath,
+ "classpath:messages");
+
+ return reloadableResourceBundleMessageSource;
}
private static class RAPServletContextInitializer implements ServletContextInitializer {
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/QuizDiscoveryList.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/QuizDiscoveryList.java
index 8042e990..c17039ae 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/content/QuizDiscoveryList.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/QuizDiscoveryList.java
@@ -233,9 +233,9 @@ public class QuizDiscoveryList implements TemplateComposer {
action.getSingleSelection();
final QuizData selectedROWData = table.getSelectedROWData();
- if (selectedROWData.startTime != null) {
+ if (selectedROWData.endTime != null) {
final DateTime now = DateTime.now(DateTimeZone.UTC);
- if (selectedROWData.startTime.isBefore(now)) {
+ if (selectedROWData.endTime.isBefore(now)) {
throw new PageMessageException(NO_IMPORT_OF_OUT_DATED_QUIZ);
}
}
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index 0988d994..82dafc82 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -25,10 +25,12 @@
-
+
+
+
diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties
index 80d46ff7..35c12a68 100644
--- a/src/main/resources/messages.properties
+++ b/src/main/resources/messages.properties
@@ -3,10 +3,6 @@
################################
sebserver.overall.version=SEB Server Version : {0}
-sebserver.overall.imprint=
-sebserver.overall.imprint.markup=
-sebserver.overall.about=
-sebserver.overall.about.markup=
sebserver.overall.help=Documentation
sebserver.overall.help.link=https://www.safeexambrowser.org/news_en.html
@@ -258,7 +254,7 @@ sebserver.quizdiscovery.info.pleaseSelect=Please Select a Quiz first
sebserver.quizdiscovery.action.list=Quiz Discovery
sebserver.quizdiscovery.action.import=Import as Exam
-sebserver.quizdiscovery.quiz.import.out.dated=The Selected Quiz is in the past and can't be imported
+sebserver.quizdiscovery.quiz.import.out.dated=The Selected Quiz is is already finished and can't be imported
sebserver.quizdiscovery.action.details=Show Details
sebserver.quizdiscovery.quiz.details.title=Quiz Details
diff --git a/src/main/resources/messages_en.properties b/src/main/resources/messages_en.properties
index bebda39d..763b1f0d 100644
--- a/src/main/resources/messages_en.properties
+++ b/src/main/resources/messages_en.properties
@@ -3,10 +3,6 @@
################################
sebserver.overall.version=SEB Server Version : {0}
-sebserver.overall.imprint=
-sebserver.overall.imprint.markup=
-sebserver.overall.about=
-sebserver.overall.about.markup=
sebserver.overall.help=Documentation
sebserver.overall.help.link=https://www.safeexambrowser.org/news_en.html