nextcloud/lib
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
..
composer Add database ratelimiting backend 2021-09-13 16:45:54 +02:00
l10n [tx-robot] updated from transifex 2021-10-26 02:23:16 +00:00
private Fix permissions when copying from ObjectStorage 2021-10-28 12:55:53 +00:00
public Merge pull request #29203 from nextcloud/backport/26688/stable21 2021-10-14 15:08:10 +02:00
autoloader.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
base.php Merge pull request #25238 from nextcloud/enh/noid/apps-defacto-in-root 2021-01-21 09:08:54 +01:00
versioncheck.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00