nextcloud/lib/private
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
..
Accounts Guard against null phone number value 2021-07-02 14:27:23 +02:00
Activity Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
App Keep group restrictions when reenabling apps after an update 2021-10-13 14:12:32 +02:00
AppFramework Make the route name error more helpful 2021-10-22 20:38:58 +00:00
Archive Fix return types for Archive::getStream 2021-01-07 12:38:41 +01:00
Authentication Merge pull request #29130 from nextcloud/backport/27886/stable21 2021-10-13 08:39:27 +02:00
Avatar improve type handling of Avatar::generateAvatarFromSv 2021-05-26 17:11:42 +00:00
BackgroundJob Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Broadcast/Events Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Cache Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Calendar Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Collaboration Also limit to user group in case enumeration is enabled for groups and phonenumbers 2021-03-22 20:07:53 +01:00
Command Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Comments Use legacy execute method 2021-09-23 12:45:23 +02:00
Console Update license headers for 19 2020-04-29 11:57:22 +02:00
Contacts/ContactsMenu Add email addresses to contacts menu 2021-09-17 10:05:54 +02:00
Dashboard Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
DB Only mark migrations as installed after execution 2021-03-30 19:51:12 +00:00
Diagnostics Update license headers for 19 2020-04-29 11:57:22 +02:00
DirectEditing Get the parent directory before creating a file from a template 2021-04-01 13:31:55 +00:00
Encryption Fix phpcs issues in encryption update 2021-04-01 07:56:41 +00:00
EventDispatcher Log deprecation notice of GenericEventWrapper just once 2021-02-05 10:14:48 +00:00
Federation Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Files Fix permissions when copying from ObjectStorage 2021-10-28 12:55:53 +00:00
FullTextSearch private cannot be final 2021-04-26 07:06:08 +00:00
GlobalScale Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Group Fix indentation error 2021-09-10 10:47:34 +00:00
Hooks Merge pull request #23766 from nextcloud/techdebt/noid/remove-unused-private-emitters 2020-10-29 10:03:36 +01:00
Http Use RFC-compliant URL encoding for cookies 2021-01-24 14:18:28 +01:00
IntegrityCheck Also load CA properly in integrity check 2021-01-20 10:57:41 +01:00
KnownUser Add known user check in avatar when v2-private scope 2021-03-29 07:03:37 +00:00
L10N Remove unneeded casts that were found by Psalm 2021-01-11 13:14:41 +01:00
LDAP make ILDAPProviderFactory usable when there is no ldap setup 2021-04-01 13:08:23 +02:00
legacy Merge pull request #29182 from nextcloud/backport/29028/stable21 2021-10-19 11:11:20 +02:00
Lock Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
Lockdown also implement for FailedCache and NullCache 2021-03-16 16:17:58 +00:00
Log Sanitize more functions from the encryption app 2021-07-21 22:00:32 +02:00
Mail Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Memcache Fix in locking cache check 2021-07-06 17:08:42 +00:00
Migration Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Notification Remove unneeded casts that were found by Psalm 2021-01-11 13:14:41 +01:00
OCS Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Preview Fall back to full file for video previews 2021-09-20 09:32:34 +00:00
Remote Update license headers for 19 2020-04-29 11:57:22 +02:00
Repair Do not try to contact lookup server if not needed 2021-04-29 09:07:38 +02:00
RichObjectStrings Use exactly one empty line after the namespace declaration 2020-04-09 11:48:10 +02:00
Route backport of #28263 2021-10-02 13:51:42 +02:00
Search use node search api for legacy file search endpoint 2021-03-23 13:41:22 +00:00
Security Add database ratelimiting backend 2021-09-13 16:45:54 +02:00
Session Only trap E_ERROR in session handling 2021-08-17 10:12:58 +00:00
Settings Remove ISection in favor of IIconSection 2020-10-28 23:05:00 +01:00
Setup Only use alphanumeric chars for mysql password 2021-01-18 12:03:52 +01:00
Share Update license headers 2020-12-30 14:07:05 +01:00
Share20 Add proper message to created share not found 2021-10-13 09:44:51 +00:00
Support Unshift crash reports when they are loaded, to break the recusion 2021-06-25 06:37:07 +00:00
SystemTag The objectid is a string 2021-01-28 22:09:55 +01:00
Tagging Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Template backport of #28263 2021-10-02 13:51:42 +02:00
Updater Update license headers for 19 2020-04-29 11:57:22 +02:00
User Merge pull request #28495 from nextcloud/backport/28481/stable21 2021-08-18 12:49:51 -07:00
UserStatus Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
AllConfig.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
AppConfig.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
CapabilitiesManager.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Color.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Config.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
ContactsManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
DatabaseException.php Update license headers 2019-12-05 15:38:45 +01:00
DatabaseSetupException.php Update license headers 2019-12-05 15:38:45 +01:00
DateTimeFormatter.php Use elseif instead of else if 2020-04-10 10:35:09 +02:00
DateTimeZone.php Update license headers for 19 2020-04-29 11:57:22 +02:00
ForbiddenException.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
HintException.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
InitialStateService.php Fix default missing initial state for templates 2021-03-17 09:20:38 +00:00
Installer.php Fix translated app details 2021-10-13 13:32:30 +02:00
LargeFileHelper.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Log.php Avoid huge exception argument logging 2020-12-29 10:50:53 +01:00
MemoryInfo.php Update license headers for 19 2020-04-29 11:57:22 +02:00
NaturalSort.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
NaturalSort_DefaultCollator.php Update license headers 2019-12-05 15:38:45 +01:00
NavigationManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
NeedsUpdateException.php Update license headers 2019-12-05 15:38:45 +01:00
NotSquareException.php Update license headers 2019-12-05 15:38:45 +01:00
PreviewManager.php Disable HEIC image preview provider for performance concerns 2021-07-21 08:33:43 +00:00
PreviewNotAvailableException.php Update license headers 2019-12-05 15:38:45 +01:00
RedisFactory.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Repair.php Do not try to contact lookup server if not needed 2021-04-29 09:07:38 +02:00
RepairException.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Search.php Fix "misplaced variables" warning of Psalm in PHPDoc statements 2020-08-17 17:46:57 +02:00
Server.php Add database ratelimiting backend 2021-09-13 16:45:54 +02:00
ServerContainer.php First query the server container 2020-11-07 17:51:41 +01:00
ServerNotAvailableException.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
ServiceUnavailableException.php Update license headers 2019-12-05 15:38:45 +01:00
Setup.php Print an exception trace for setup exceptions 2021-01-07 20:11:25 +01:00
Streamer.php Only disable zip64 if the size is known 2020-09-01 15:01:12 +02:00
SubAdmin.php Fix typo in @deprecated PHPDoc tag 2020-11-24 00:13:09 +01:00
SystemConfig.php consider some config keys under 'objectstore_multibucket' as sensitive 2021-10-06 07:52:40 +00:00
TagManager.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Tags.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
TemplateLayout.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
TempManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Updater.php Fix app upgrade 2021-10-19 08:47:52 +02:00
URLGenerator.php Prevent empty base URL during installation 2021-09-29 15:40:57 +00:00