nextcloud/lib/private/Files/ObjectStore
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
..
AppdataPreviewObjectStoreStorage.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Azure.php use in objectstore copy 2020-11-24 15:16:58 +01:00
HomeObjectStoreStorage.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Mapper.php Update license headers 2019-12-05 15:38:45 +01:00
NoopScanner.php Use matching parameter names form interfaces and implementations 2020-08-19 18:16:35 +02:00
ObjectStoreStorage.php Fix permissions when copying from ObjectStorage 2021-10-28 12:55:53 +00:00
S3.php Update license headers 2019-12-05 15:38:45 +01:00
S3ConnectionTrait.php Avoid reading ~/.aws/config when using S3 provider 2021-05-25 08:59:03 +00:00
S3ObjectTrait.php s3 external storage listing rework 2021-10-26 14:41:46 +02:00
S3Signature.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
StorageObjectStore.php Bump icewind/streams from 0.7.1 to 0.7.2 2020-12-29 09:07:36 +01:00
Swift.php use in objectstore copy 2020-11-24 15:16:58 +01:00
SwiftFactory.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
SwiftV2CachingAuthService.php Use exactly one empty line after the namespace declaration 2020-04-09 11:48:10 +02:00