From f73b3049812762ff8781cf5dcd3128f3e3db38e3 Mon Sep 17 00:00:00 2001 From: uhensler <none@none> Date: Tue, 4 Jul 2017 09:34:29 +0200 Subject: [PATCH] OO-2723: Some videos where not played --- .../org/olat/modules/webFeed/manager/FeedFileStorge.java | 5 ++--- .../java/org/olat/modules/webFeed/ui/ItemFormController.java | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java b/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java index e37dd831ffe..141407a080d 100644 --- a/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java +++ b/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java @@ -501,9 +501,8 @@ public class FeedFileStorge { if (media != null) { VFSContainer itemMediaContainer = getOrCreateItemMediaContainer(item); if (itemMediaContainer != null) { - VFSItem movedItem = media.moveUploadFileTo(itemMediaContainer); - saveFileName = Formatter.makeStringFilesystemSave(media.getUploadFileName()); - movedItem.rename(saveFileName); + media.moveUploadFileTo(itemMediaContainer); + saveFileName = media.getUploadFileName(); } } diff --git a/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java b/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java index 640ec97e787..eca16f32ee5 100644 --- a/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java +++ b/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java @@ -278,8 +278,7 @@ public abstract class ItemFormController extends FormBasicController { } } - return allOk ; -// return allOk & super.validateFormLogic(ureq); + return allOk & super.validateFormLogic(ureq); } private boolean validateFilename(String filename) { -- GitLab