Skip to content

Commit 9a39018

Browse files
Merge remote-tracking branch 'upstream/master' into accept-ocm-to-groups
2 parents a1e761e + 01275f7 commit 9a39018

File tree

1,064 files changed

+17153
-8042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,064 files changed

+17153
-8042
lines changed

.drone.star

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ config = {
294294
"commands": [
295295
"php occ maintenance:singleuser --on",
296296
"php occ encryption:enable",
297-
"php occ encryption:select-encryption-type masterkey --yes",
298297
"php occ encryption:encrypt-all --yes",
299298
"php occ encryption:status",
300299
"php occ maintenance:singleuser --off",

CHANGELOG.html

Lines changed: 305 additions & 14 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 358 additions & 10 deletions
Large diffs are not rendered by default.

apps/dav/l10n/en_GB.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ OC.L10N.register(
22
"dav",
33
{
44
"Contact birthdays" : "Contact birthdays",
5+
"User unknown" : "User unknown",
56
"User disabled" : "User disabled",
67
"Personal" : "Personal",
78
"Contacts" : "Contacts",

apps/dav/l10n/en_GB.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{ "translations": {
22
"Contact birthdays" : "Contact birthdays",
3+
"User unknown" : "User unknown",
34
"User disabled" : "User disabled",
45
"Personal" : "Personal",
56
"Contacts" : "Contacts",

apps/dav/l10n/it.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ OC.L10N.register(
22
"dav",
33
{
44
"Contact birthdays" : "Compleanni dei contatti",
5+
"User unknown" : "Utente sconosciuto",
56
"User disabled" : "Utente disabilitato",
67
"Personal" : "Personale",
78
"Contacts" : "Contatti",

apps/dav/l10n/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{ "translations": {
22
"Contact birthdays" : "Compleanni dei contatti",
3+
"User unknown" : "Utente sconosciuto",
34
"User disabled" : "Utente disabilitato",
45
"Personal" : "Personale",
56
"Contacts" : "Contatti",

apps/dav/l10n/ko.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ OC.L10N.register(
22
"dav",
33
{
44
"Contact birthdays" : "연락처에 등록된 생일",
5+
"User unknown" : "알 수 없는 사용자",
56
"User disabled" : "사용자 비활성화됨",
67
"Personal" : "개인",
78
"Contacts" : "연락처",

apps/dav/l10n/ko.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{ "translations": {
22
"Contact birthdays" : "연락처에 등록된 생일",
3+
"User unknown" : "알 수 없는 사용자",
34
"User disabled" : "사용자 비활성화됨",
45
"Personal" : "개인",
56
"Contacts" : "연락처",

apps/dav/lib/Connector/Sabre/Directory.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
use Sabre\DAV\Exception\Locked as SabreLocked;
5050
use Sabre\DAV\Exception\NotFound as SabreNotFound;
5151
use Sabre\DAV\Exception\ServiceUnavailable as SabreServiceUnavailable;
52+
use Sabre\DAV\Exception\InsufficientStorage as SabreInsufficientStorage;
5253
use Sabre\DAV\ICollection;
5354
use Sabre\DAV\IFile;
5455
use Sabre\DAV\IMoveTarget;
@@ -213,6 +214,17 @@ public function createDirectory($name) {
213214
throw new SabreForbidden();
214215
}
215216

217+
$absolutePath = Filesystem::normalizePath($this->fileView->getAbsolutePath($name));
218+
list($targetStorage, $targetInternalPath) = Filesystem::resolvePath($absolutePath);
219+
220+
// We are using == instead of === as the computerFileSize method which is
221+
// used to get the quota may return a float type. Note that the same
222+
// has been observed for the disk_free_space function in local storage
223+
list($used, $free) = $this->getQuotaInfo();
224+
if ($free == 0 && ($targetStorage->instanceOfStorage('\OCP\Files\IHomeStorage') === true)) {
225+
throw new SabreInsufficientStorage('Creation of empty directories is forbidden in case of no available quota');
226+
}
227+
216228
$this->fileView->verifyPath($this->path, $name);
217229
$newPath = $this->path . '/' . $name;
218230
if (!$this->fileView->mkdir($newPath)) {

0 commit comments

Comments
 (0)