]> source.dussan.org Git - nextcloud-server.git/commitdiff
feat: Delegate is-encrypted handling to the e2ee app 47514/head
authorLouis Chemineau <louis@chmn.me>
Mon, 26 Aug 2024 17:39:38 +0000 (19:39 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 27 Aug 2024 10:34:54 +0000 (10:34 +0000)
Signed-off-by: Louis Chemineau <louis@chmn.me>
apps/dav/lib/Connector/Sabre/FilesPlugin.php

index bca0d15709f3c24c06a5e439b728b634994a27a8..18be994f0bc6e9548d77c68b45351ab2f1bee93f 100644 (file)
@@ -53,7 +53,6 @@ class FilesPlugin extends ServerPlugin {
        public const HAS_PREVIEW_PROPERTYNAME = '{http://nextcloud.org/ns}has-preview';
        public const MOUNT_TYPE_PROPERTYNAME = '{http://nextcloud.org/ns}mount-type';
        public const MOUNT_ROOT_PROPERTYNAME = '{http://nextcloud.org/ns}is-mount-root';
-       public const IS_ENCRYPTED_PROPERTYNAME = '{http://nextcloud.org/ns}is-encrypted';
        public const METADATA_ETAG_PROPERTYNAME = '{http://nextcloud.org/ns}metadata_etag';
        public const UPLOAD_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}upload_time';
        public const CREATION_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}creation_time';
@@ -121,7 +120,6 @@ class FilesPlugin extends ServerPlugin {
                $server->protectedProperties[] = self::DATA_FINGERPRINT_PROPERTYNAME;
                $server->protectedProperties[] = self::HAS_PREVIEW_PROPERTYNAME;
                $server->protectedProperties[] = self::MOUNT_TYPE_PROPERTYNAME;
-               $server->protectedProperties[] = self::IS_ENCRYPTED_PROPERTYNAME;
                $server->protectedProperties[] = self::SHARE_NOTE;
 
                // normally these cannot be changed (RFC4918), but we want them modifiable through PROPPATCH
@@ -419,10 +417,6 @@ class FilesPlugin extends ServerPlugin {
                                return $node->getSize();
                        });
 
-                       $propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function () use ($node) {
-                               return $node->getFileInfo()->isEncrypted() ? '1' : '0';
-                       });
-
                        $requestProperties = $propFind->getRequestedProperties();
 
                        if (in_array(self::SUBFILE_COUNT_PROPERTYNAME, $requestProperties, true)