From d03020e2b882be6913db0823de73228d23009118 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Thu, 19 Aug 2021 11:33:00 +0200 Subject: [PATCH] fix folders validation Fixes #510 --- dataprovider/dataprovider.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dataprovider/dataprovider.go b/dataprovider/dataprovider.go index ab67af69..89918abe 100644 --- a/dataprovider/dataprovider.go +++ b/dataprovider/dataprovider.go @@ -1560,6 +1560,7 @@ func createUserPasswordHash(user *User) error { // ValidateFolder returns an error if the folder is not valid // FIXME: this should be defined as Folder struct method func ValidateFolder(folder *vfs.BaseVirtualFolder) error { + folder.FsConfig.SetEmptySecretsIfNil() if folder.Name == "" { return &ValidationError{err: "folder name is mandatory"} }