aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedStorage.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: disable direct download for sharesno-shared-direct-downloadRobin Appelman2025-04-111-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #50769 from nextcloud/checkStorageIdSetCacheChristoph Wurst2025-02-141-3/+2
|\ | | | | fix(SharedStorage): Check if storage ID is set on cache
| * fix(SharedStorage): Check if storage ID is set on cachecheckStorageIdSetCacheGit'Fellow2025-02-131-6/+6
| | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-131-4/+5
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: don't use cached root info from shared cache if the watcher has ↵Robin Appelman2025-02-061-0/+5
| | | | | | detected an update Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf: improve performance of SharedStorage::getWatcherRobin Appelman2024-11-291-13/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor(Storage): Align all Storage constructorsrefactor/storage/constructorsprovokateurin2024-10-231-7/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-3/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-13/+16
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(files_sharing): Add Storage parameter strong typesprovokateurin2024-10-071-28/+22
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_sharing): Fix all IStorage return typesprovokateurin2024-09-261-45/+18
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* 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