nextcloud/lib/private/Files/Cache
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
..
Wrapper Merge pull request #28583 from nextcloud/backport/28566/stable22 2021-08-25 13:21:41 +02:00
Cache.php Fix permissions when copying from ObjectStorage 2021-10-30 00:18:26 +02:00
CacheEntry.php rework search api to allow searching on multiple caches at once 2021-06-14 16:11:22 +02:00
CacheQueryBuilder.php rework search api to allow searching on multiple caches at once 2021-06-14 16:11:22 +02:00
FailedCache.php use searchoperation for storage filter instead of db expression 2021-06-14 16:11:25 +02:00
HomeCache.php Update php licenses 2021-06-04 22:02:41 +02:00
HomePropagator.php Update php licenses 2021-06-04 22:02:41 +02:00
LocalRootScanner.php Update php licenses 2021-06-04 22:02:41 +02:00
MoveFromCacheTrait.php Update php licenses 2021-06-04 22:02:41 +02:00
NullWatcher.php Update php licenses 2021-06-04 22:02:41 +02:00
Propagator.php Update php licenses 2021-06-04 22:02:41 +02:00
QuerySearchHelper.php generate a better optimized query for path prefix search filters 2021-10-07 15:19:58 +00:00
Scanner.php Update php licenses 2021-06-04 22:02:41 +02:00
SearchBuilder.php generate a better optimized query for path prefix search filters 2021-10-07 15:19:58 +00:00
Storage.php Update php licenses 2021-06-04 22:02:41 +02:00
StorageGlobal.php Update php licenses 2021-06-04 22:02:41 +02:00
Updater.php Update php licenses 2021-06-04 22:02:41 +02:00
Watcher.php more reliable return value for Watcher::checkUpdate 2021-10-22 12:34:30 +00:00