diff --git a/pom.xml b/pom.xml
index 6426509d..82f3e9d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
jar
- 1.2.2
+ 1.2.3
${sebserver-version}
${sebserver-version}
UTF-8
diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java
index cc097985..8d79797b 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java
@@ -530,6 +530,10 @@ public final class Utils {
return getMillisecondsNow() / 1000;
}
+ public static long toSeconds(final long millis) {
+ return millis / 1000;
+ }
+
public static RGB toRGB(final String rgbString) {
if (StringUtils.isNotBlank(rgbString)) {
return new RGB(
@@ -661,4 +665,5 @@ public final class Utils {
return false; // Either timeout or unreachable or failed DNS lookup.
}
}
+
}
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java
index 3d056de1..9ffb7886 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/MonitoringProctoringService.java
@@ -487,7 +487,7 @@ public class MonitoringProctoringService {
try {
- final boolean active = room.roomSize > 0 && !room.isOpen;
+ final boolean active = room.roomSize > 0 /* && !room.isOpen SEBSERV-236 */;
final Display display = pageContext.getRoot().getDisplay();
final PageAction action = (PageAction) treeItem.getData(ActionPane.ACTION_EVENT_CALL_KEY);
final Image image = active
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/ProctoringGUIService.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/ProctoringGUIService.java
index 9d69b307..63451f1e 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/ProctoringGUIService.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/proctoring/ProctoringGUIService.java
@@ -101,7 +101,7 @@ public class ProctoringGUIService {
public boolean isCollectingRoomEnabled(final String roomName) {
try {
final Pair pair = this.collectingRoomsActionState.get(roomName);
- return pair.a.roomSize > 0 && !pair.a.isOpen;
+ return pair.a.roomSize > 0 /* && !pair.a.isOpen SEBSERV-236 */;
} catch (final Exception e) {
log.error("Failed to get actual collecting room size for room: {} cause: ", roomName, e.getMessage());
return false;
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/olat/OlatLmsRestTemplate.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/olat/OlatLmsRestTemplate.java
index 6c326124..bc026a1f 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/olat/OlatLmsRestTemplate.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/olat/OlatLmsRestTemplate.java
@@ -9,9 +9,12 @@
package ch.ethz.seb.sebserver.webservice.servicelayer.lms.impl.olat;
import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpRequest;
import org.springframework.http.HttpStatus;
@@ -66,12 +69,15 @@ public class OlatLmsRestTemplate extends RestTemplate {
private void authenticate() {
// Authenticate with OLAT and store the received X-OLAT-TOKEN
this.token = "authenticating";
- final String authUrl = String.format("%s%s?password=%s",
- this.details.getAccessTokenUri(),
- this.details.getClientId(),
- this.details.getClientSecret());
+ final String authUrl = this.details.getAccessTokenUri();
+ final Map credentials = new HashMap<>();
+ credentials.put("username", this.details.getClientId());
+ credentials.put("password", this.details.getClientSecret());
+ final HttpHeaders httpHeaders = new HttpHeaders();
+ httpHeaders.set("content-type", "application/json");
+ final HttpEntity