nextcloud/lib/private/Files
Carl Schwan 00a9b0c1db Fix permissions when copying from ObjectStorage
Make sure that when a user copy a file from a directory they don't have
all permissions to a directory where they have more permissions, the
permissions are correctly set to the one from the parent taget folder.

This was caused by the ObjectStoreStorage::copyFromStorage using
the jailed storage and cache entry instead of the unjailed one like other
storages (the local one).
Steps to reproduce

+ Use object storage
+ Create a groupfolder with one group having full permission and another one
  who can just read files.
+ With an user who is in the second group, copy a file from the groupfolder to
  the home folder of this user.
+ The file in the home folder of the user will be read only and can't be deleted
  even though it is in their home folder and they are the owner. In oc_filecache,
  the permissions stored for this file are 1 (READ)

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-28 12:55:53 +00:00
..
AppData Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Cache Fix permissions when copying from ObjectStorage 2021-10-28 12:55:53 +00:00
Config Fix functions taking optional parameters before required ones 2021-06-07 21:33:52 +00:00
Mount handle case where storage can't be created in getStorageRootId 2021-09-30 13:21:40 +02:00
Node fix Folder->getById() when a single storage is mounted multiple times 2021-08-09 17:32:20 +00:00
Notify Update license headers 2019-12-05 15:38:45 +01:00
ObjectStore Fix permissions when copying from ObjectStorage 2021-10-28 12:55:53 +00:00
Search handle ordering in folder search 2021-03-23 13:41:18 +00:00
SimpleFS Add getID function to the simplefile implementation 2021-03-15 13:44:45 +00:00
Storage Fix security issues when copying groupfolder with advanced ACL 2021-10-21 16:34:46 +00:00
Stream Fix psalm issue in Encryption stream 2021-10-08 12:15:04 +02:00
Template Fix log error when creating files from an empty template 2021-05-19 07:03:27 +00:00
Type Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Utils Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
FileInfo.php Remove unneeded casts that were found by Psalm 2021-01-11 13:14:41 +01:00
Filesystem.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
View.php Check whether output buffering is active before turning it off 2021-06-07 21:33:53 +00:00