diff --git a/src/main/java/org/olat/course/nodes/IQSELFCourseNode.java b/src/main/java/org/olat/course/nodes/IQSELFCourseNode.java index b005c23bcfed4a83fcf92a4384b0fa37da711d6b..78e2da363b3fa378c0348ef1496be16737c2f5f8 100644 --- a/src/main/java/org/olat/course/nodes/IQSELFCourseNode.java +++ b/src/main/java/org/olat/course/nodes/IQSELFCourseNode.java @@ -235,7 +235,11 @@ public class IQSELFCourseNode extends AbstractAccessableCourseNode implements Se public boolean archiveNodeData(Locale locale, ICourse course, ArchiveOptions options, ZipOutputStream exportStream, String archivePath, String charset) { String repositorySoftKey = (String) getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY); - RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true); + RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, false); + if(re == null) { + log.error("Cannot archive course node. Missing repository entry with soft key: ", repositorySoftKey); + return false; + } try { if(ImsQTI21Resource.TYPE_NAME.equals(re.getOlatResource().getResourceableTypeName())) { diff --git a/src/main/java/org/olat/course/nodes/IQSURVCourseNode.java b/src/main/java/org/olat/course/nodes/IQSURVCourseNode.java index 4b47de55fe3895c3dd341cf2c8f070563f0f02dc..acdd6ebcae984b56e0992f2c6fbf3c3beff215a1 100644 --- a/src/main/java/org/olat/course/nodes/IQSURVCourseNode.java +++ b/src/main/java/org/olat/course/nodes/IQSURVCourseNode.java @@ -291,7 +291,11 @@ public class IQSURVCourseNode extends AbstractAccessableCourseNode implements QT ZipOutputStream exportStream, String archivePath, String charset) { QTIExportManager qem = QTIExportManager.getInstance(); String repositorySoftKey = (String) getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY); - RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true); + RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, false); + if(re == null) { + log.error("Cannot archive course node. Missing repository entry with soft key: ", repositorySoftKey); + return false; + } QTIExportFormatter qef = new QTIExportFormatterCSVType3(locale, null,"\t", "\"", "\r\n", false); try { diff --git a/src/main/java/org/olat/course/nodes/IQTESTCourseNode.java b/src/main/java/org/olat/course/nodes/IQTESTCourseNode.java index a214a1b147831b9cf8ce27f4215d32cae8a5ba1a..e8f406821e642fd75a5911fe536be65675bd4170 100644 --- a/src/main/java/org/olat/course/nodes/IQTESTCourseNode.java +++ b/src/main/java/org/olat/course/nodes/IQTESTCourseNode.java @@ -477,7 +477,12 @@ public class IQTESTCourseNode extends AbstractAccessableCourseNode implements QT // 1) prepare result export CourseEnvironment courseEnv = course.getCourseEnvironment(); try { - RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true); + RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, false); + if(re == null) { + log.error("Cannot archive course node. Missing repository entry with soft key: ", repositorySoftKey); + return false; + } + boolean onyx = QTIResourceTypeModule.isOnyxTest(re.getOlatResource()); if (onyx) { return true; diff --git a/src/main/resources/serviceconfig/olat.properties b/src/main/resources/serviceconfig/olat.properties index 190f1ff3a5daa0f077a56ad03ddba482876f0311..84333e081c5a1f3f63b78374191aa85841ae1072 100644 --- a/src/main/resources/serviceconfig/olat.properties +++ b/src/main/resources/serviceconfig/olat.properties @@ -572,7 +572,7 @@ webdav.termsfolders.enabled=true # User agents for which the basic authentication should never be proposed webdav.basic.authentication.black.list=Microsoft Office Excel,Microsoft Excel,Microsoft-WebDAV-MiniRedir # User agents which don't play nice -webdav.user.agent.black.list=- +webdav.user.agent.black.list=,- ######################################################################## # Image and PDF scale/thumbnail options