From 7a3e3a2492ca47d2e40b00ceaf46e89738dba0a9 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 12 Jun 2024 08:51:07 +0200 Subject: [PATCH] SEBSERV-417 try fix corrupt Moodle data --- .../webservice/weblayer/api/ExamAdministrationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/ExamAdministrationController.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/ExamAdministrationController.java index cb022f07..63d3b97e 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/ExamAdministrationController.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/ExamAdministrationController.java @@ -734,7 +734,7 @@ public class ExamAdministrationController extends EntityController { .flatMap(this.sebRestrictionService::applySEBClientRestriction) // TODO temporary try to fix corrupted data on Moodle site .onErrorDo(error -> { - if (error.getMessage().contains("error/SEB Server")) { + if (error.getMessage().contains("no SebServer Info!")) { log.info("**** try to reset exam_data on Moodle 2.0 with temporary hack... "); fullLmsIntegrationService.applyExamDataToLMS(exam) .onError(e -> log.error("Failed to apply exam data: ", error));