nextcloud/lib/private/Files/Cache
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
..
Wrapper [21] generate a better optimized query for path prefix search filters 2021-10-12 15:55:57 +02:00
AbstractCacheEvent.php extend cache events 2020-11-26 15:22:03 +01:00
Cache.php Fix permissions when copying from ObjectStorage 2021-10-28 12:55:53 +00:00
CacheEntry.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
CacheQueryBuilder.php Make Cache::removeChildren non recursive 2020-08-20 15:37:02 +02:00
FailedCache.php also implement for FailedCache and NullCache 2021-03-16 16:17:58 +00:00
HomeCache.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
HomePropagator.php Update license headers 2019-12-05 15:38:45 +01:00
LocalRootScanner.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
MoveFromCacheTrait.php add ICopyFromCache trait to expose existing implementation 2021-03-16 16:17:56 +00:00
NullWatcher.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Propagator.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
QuerySearchHelper.php fix cachjail searching for root 2021-03-15 17:51:32 +00:00
Scanner.php catch notfound and forbidden exception in smb::getmetadata 2021-03-05 07:51:47 +00:00
Storage.php Revert "[stable21] better cleanup of filecache when deleting an external storage" 2021-07-27 15:51:10 +02:00
StorageGlobal.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Updater.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Watcher.php more reliable return value for Watcher::checkUpdate 2021-10-26 14:45:08 +02:00