|
8 | 8 | namespace OCA\DAV\Connector\Sabre; |
9 | 9 |
|
10 | 10 | use OC\AppFramework\Http\Request; |
| 11 | +use OC\Files\Node\Folder; |
11 | 12 | use OCP\Constants; |
| 13 | +use OCP\Files\File; |
12 | 14 | use OCP\Files\ForbiddenException; |
13 | 15 | use OCP\Files\StorageNotAvailableException; |
14 | 16 | use OCP\FilesMetadata\Exceptions\FilesMetadataException; |
@@ -53,7 +55,6 @@ class FilesPlugin extends ServerPlugin { |
53 | 55 | public const HAS_PREVIEW_PROPERTYNAME = '{http://nextcloud.org/ns}has-preview'; |
54 | 56 | public const MOUNT_TYPE_PROPERTYNAME = '{http://nextcloud.org/ns}mount-type'; |
55 | 57 | public const MOUNT_ROOT_PROPERTYNAME = '{http://nextcloud.org/ns}is-mount-root'; |
56 | | - public const IS_ENCRYPTED_PROPERTYNAME = '{http://nextcloud.org/ns}is-encrypted'; |
57 | 58 | public const METADATA_ETAG_PROPERTYNAME = '{http://nextcloud.org/ns}metadata_etag'; |
58 | 59 | public const UPLOAD_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}upload_time'; |
59 | 60 | public const CREATION_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}creation_time'; |
@@ -121,7 +122,6 @@ public function initialize(Server $server) { |
121 | 122 | $server->protectedProperties[] = self::DATA_FINGERPRINT_PROPERTYNAME; |
122 | 123 | $server->protectedProperties[] = self::HAS_PREVIEW_PROPERTYNAME; |
123 | 124 | $server->protectedProperties[] = self::MOUNT_TYPE_PROPERTYNAME; |
124 | | - $server->protectedProperties[] = self::IS_ENCRYPTED_PROPERTYNAME; |
125 | 125 | $server->protectedProperties[] = self::SHARE_NOTE; |
126 | 126 |
|
127 | 127 | // normally these cannot be changed (RFC4918), but we want them modifiable through PROPPATCH |
@@ -419,10 +419,6 @@ public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node) |
419 | 419 | return $node->getSize(); |
420 | 420 | }); |
421 | 421 |
|
422 | | - $propFind->handle(self::IS_ENCRYPTED_PROPERTYNAME, function () use ($node) { |
423 | | - return $node->getFileInfo()->isEncrypted() ? '1' : '0'; |
424 | | - }); |
425 | | - |
426 | 422 | $requestProperties = $propFind->getRequestedProperties(); |
427 | 423 |
|
428 | 424 | if (in_array(self::SUBFILE_COUNT_PROPERTYNAME, $requestProperties, true) |
|
0 commit comments