aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedStorage.php
Commit message (Collapse)AuthorAgeFilesLines
* Migrate files sharing to PSR LoggerInterfaceBenjamin Gaussorgues2023-07-061-6/+4
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Fix inherited parameter namesjld31032023-04-031-6/+6
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Put back the variable but make sure it is properly declaredCôme Chilliet2022-12-051-1/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove dymanic var $mountOptions to fix PHP 8.2 compatibilityCôme Chilliet2022-11-241-3/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Rename file1 and file2 to source and target in Storage abstractionCarl Schwan2022-10-181-7/+7
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Cache display nameCarl Schwan2022-04-221-1/+2
| | | | | | | | This should saves some query in the share backend when displaying the owner and it's not important if the display name is 10 minutes outdated as it is very rare that this gets changed. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* also apply the fix for the other storage typesRobin Appelman2022-04-211-1/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* improve optimization for SharedStorage::instanceOfStorage(Common)Robin Appelman2022-04-211-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use UserFolder to get the share source nodeRobin Appelman2022-04-041-11/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge branch 'master' into imountpoint-ocp-storageJohn Molakvoæ2021-10-221-3/+22
|\
| * Return proper watcher if SharedStorage originates from ExternalMountJohn Molakvoæ (skjnldsv)2021-09-101-1/+16
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Use DI for files_sharing CacheMorris Jobke2021-06-171-1/+6
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | dont return private storage interface from public mount interfaceRobin Appelman2021-03-231-5/+0
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add some typing to SharedStorageRoeland Jago Douma2021-03-041-22/+23
| | | | | | Makes psalm a bit more happy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-1/+1
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-1/+1
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22898 from ↵Morris Jobke2020-09-171-2/+2
|\ | | | | | | | | nextcloud/fix/16696/add-spaces-and-fix-variable-name Fix variable name and add spaces around path in info log line
| * Fix variable name and add spaces around path in info log lineMorris Jobke2020-09-171-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #22902 from ↵Morris Jobke2020-09-171-1/+1
|\ \ | | | | | | | | | | | | nextcloud/fix/16696/proper-target-path-for-share-event Create proper target path for shared storage fopen event
| * | Create proper target path for shared storage fopen eventMorris Jobke2020-09-171-1/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | optimize View::getPath if we already know the storage idRobin Appelman2020-09-161-5/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | disable update checking for shared storagesRobin Appelman2020-09-151-6/+13
|/ | | | | | update checking is already handled by the share source Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-1/+0
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* remove unneeded ifRobin Appelman2020-08-281-44/+42
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve recent file fetchingRoeland Jago Douma2020-08-181-0/+5
| | | | | | | | | | | | | | | | Fixes #16876 Before we'd just fetch everything from all storages we'd have access to. Then we'd sort. And filter in php. Now this of course is tricky if a user shared just a file with you and then has a ton of activity. Now we try to contruct the prefix path. So that the filtering can happen right away in the databae. Now this will make the DB more busy. But it should help overall as in most cases less queries are needed then etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-291-1/+2
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* Double check for failed cache with a shared storageRoeland Jago Douma2018-10-161-1/+3
| | | | | | | | | | | When obtaining the SourceRootInfo we can call init. If this fails the cache is set to a failed cache and the storage to a failed storage. However we did not check for this. Which means that if the storage was invalid it would fail later on. Now we will properly error out. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Properly check share permissionsRoeland Jago Douma2018-09-061-2/+8
| | | | | | | | isCreatable only works on folders isUpdatable if the file is not there but it is a part file also has to be checked on the folder Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Check the permission of the underlying storageRoeland Jago Douma2018-09-061-1/+2
| | | | | | | Else shares might expose more permissions than the storage actually providers. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* only determine is sharing is disabled for a user onceRobin Appelman2018-08-161-1/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix propagating changes within jail wrapperRobin Appelman2017-07-111-12/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rename Jail::getSourcePath to getUnjailedPath to fix conflict with ↵Robin Appelman2017-04-121-5/+5
| | | | | | Local::getSourcePath Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #4004 from nextcloud/backport-27172Roeland Jago Douma2017-03-281-0/+5
|\ | | | | Remove SharedCache::getNumericStorageId to let CacheWrapper do it
| * fix shared storage numeric idRobin Appelman2017-03-271-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | set cache to failedcache when shared storage init failsRobin Appelman2017-03-231-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | return failed cache if the shared storage failed to setupRobin Appelman2017-03-201-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | also set nonmaskedstorage in error casesRobin Appelman2017-03-201-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Ignore NoUserException for shares from ghostsVincent Petry2017-03-201-2/+6
|/ | | | | | Add unit tests for FailedStorage init from SharedStorage Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use unmasked permissions in shared scannerRobin Appelman2016-12-141-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* apply permissions mask for shared storageRobin Appelman2016-12-021-4/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix getting root entry when not provided by the share providerRobin Appelman2016-11-171-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>