nextcloud/lib/private/Files
Carl Schwan 7bf4a45f49 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-30 00:18:26 +02:00
..
AppData Update php licenses 2021-06-04 22:02:41 +02:00
Cache Fix permissions when copying from ObjectStorage 2021-10-30 00:18:26 +02:00
Config Merge pull request #26494 from rigrig/fix-php8-deprecations 2021-06-07 23:30:59 +02:00
Mount handle case where storage can't be created in getStorageRootId 2021-06-17 14:32:38 +02:00
Node fix Folder->getById() when a single storage is mounted multiple times 2021-08-09 17:29:40 +00:00
Notify Update php licenses 2021-06-04 22:02:41 +02:00
ObjectStore Fix permissions when copying from ObjectStorage 2021-10-30 00:18:26 +02:00
Search generate a better optimized query for path prefix search filters 2021-10-07 15:19:58 +00:00
SimpleFS Update php licenses 2021-06-04 22:02:41 +02:00
Storage Fix security issues when copying groupfolder with advanced ACL 2021-10-21 16:34:20 +00:00
Stream Support seeking also from the end of file on S3 storage 2021-09-20 18:13:25 +00:00
Template Update php licenses 2021-06-04 22:02:41 +02:00
Type Update php licenses 2021-06-04 22:02:41 +02:00
Utils Update php licenses 2021-06-04 22:02:41 +02:00
FileInfo.php Update php licenses 2021-06-04 22:02:41 +02:00
Filesystem.php Merge pull request #26344 from J0WI/fs-early-root 2021-06-23 15:21:56 +02:00
View.php Merge pull request #26494 from rigrig/fix-php8-deprecations 2021-06-07 23:30:59 +02:00