aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedStorage.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(Storage): Fix method docs inheritancefix/storage/method-docs-inheritanceprovokateurin2024-09-171-16/+0
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Storage): Document getOwner() can return falseprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Fix other uses of removed Storage interfaceCôme Chilliet2024-09-161-3/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-3/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-121-2/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: try to find non-recursive share sourceRobin Appelman2024-07-301-6/+18
| | | | | | instead of always picking the first one, try to find one that won't blow up Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: fix recursive share checkRobin Appelman2024-07-301-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-29/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: add extra check to ensure wrapped shared storage is setRobin Appelman2024-03-201-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: improve typing for SharedStorage::$storageRobin Appelman2024-03-141-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: don't return null for SharedStorage::getWrapperStorage with share recursionRobin Appelman2024-03-141-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: add some recrusive detection/preventionRobin Appelman2024-03-081-1/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-3/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge branch 'master' into share-external-watcherJohn Molakvoæ2024-02-231-9/+9
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * also improe cache ci for shared cacheRobin Appelman2024-02-091-3/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-5/+5
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | improve logic for getting the watcher for a shared external storageRobin Appelman2023-09-111-8/+17
|/ | | | | | with the new-ish lazy mount loading the underlying mount might not be loaded yet, so ask the mount cache instead Signed-off-by: Robin Appelman <robin@icewind.nl>
* pass the share to the cache instead of having to ask the storageRobin Appelman2023-08-181-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>