summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* Revert "don't perform an explicit setup when using the file cache"Joas Schilling2024-03-073-22/+3
|
* Merge pull request #32163 from nextcloud/file-cache-gc-no-full-setupJohn Molakvoæ2024-03-073-3/+22
|\ | | | | don't perform an explicit setup when using the file cache
| * fix: fix user folder initRobin Appelman2024-03-063-3/+13
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix: ensure user home mounts is registeredRobin Appelman2024-03-061-0/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #43086 from nextcloud/s3-internal-multipart-copy-disableRobin Appelman2024-03-071-1/+2
|\ \ | | | | | | disable the internal s3sdk multi part copy logic
| * | fix: disable the internal s3sdk multi part copy logicRobin Appelman2024-03-061-1/+2
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: clearify logic around getMountsForFileId filteringRobin Appelman2024-03-061-2/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Revert "Filter mounts for file id before trying to get user information"Robin Appelman2024-03-061-16/+4
| | | | | | | | | | | | This reverts commit 1e2cf820c89b774d0a8d6f85bfd8d2fd1b4ab2d6. Signed-off-by: Robin Appelman <robin@icewind.nl>
* | perf: use lazy user in UserMountCache for getting user for cached mountRobin Appelman2024-03-061-6/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #43471 from nextcloud/cache-path-by-idRobin Appelman2024-03-057-21/+51
|\ | | | | Cache path by id
| * perf: cache path by id to speedup getting nodes by idRobin Appelman2024-03-041-2/+28
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-042-7/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * feat: add interface to get only a single node by id instead of all nodes for ↵Robin Appelman2024-03-046-14/+23
| | | | | | | | | | | | | | | | the id this should be enough in most(?) cases and makes efficient implementation and caching easier Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #43975 from nextcloud/search-optimize-fixesRobin Appelman2024-03-052-39/+18
|\ \ | | | | | | Handle more cases in the MergeDistributive search query optimizer
| * | fix: handle cases where non-binary operators are mixed in for optimizing ↵Robin Appelman2024-03-041-38/+15
| | | | | | | | | | | | | | | | | | search queries Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix: don't short circuit query optimizerRobin Appelman2024-03-041-1/+3
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #43791 from nextcloud/share-api-cleanupRobin Appelman2024-03-041-24/+29
|\ \ | |/ |/| Share api cleanup
| * fix: update "move into share" check to share managerRobin Appelman2024-02-271-24/+29
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: Enforce forbidden filename characters on backendFerdinand Thiessen2024-02-281-5/+7
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #43787 from nextcloud/fix/opendir-temporary-failureJohn Molakvoæ2024-02-241-0/+6
|\
| * fix: Throw instead of yielding nothing when listing local directoriesJulius Härtl2024-02-231-0/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | add a debug option to force a full filesystem setupRobin Appelman2024-02-241-0/+6
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add some comments for the distributive operation and add another testRobin Appelman2024-02-161-4/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add extra flatten step to improve "or eq" -> "in" optimizationRobin Appelman2024-02-151-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix types + autoloaderRobin Appelman2024-02-153-10/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add a search query step to split IN statements that are to large for ociRobin Appelman2024-02-152-0/+34
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* hopefully improve propagation of 'path eq hash' hint into 'in' statementsRobin Appelman2024-02-152-4/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize query pattern used by storage filterRobin Appelman2024-02-159-48/+377
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #43461 from nextcloud/fix/get-rid-of-getloggerF. E Noel Nfebe2024-02-142-34/+56
|\ | | | | chore: Migrate away from OC::$server->getLogger
| * chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-132-34/+56
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | feat: rename users to account or personVincent Petry2024-02-131-1/+1
|/ | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* use OCP\ServerRobin Appelman2024-02-122-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* also improe cache ci for shared cacheRobin Appelman2024-02-093-18/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* improve di performance for cacheRobin Appelman2024-02-095-55/+101
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only get the path for the users cached mount info when we use itRobin Appelman2024-02-092-15/+113
| | | | | | most of the time we shouldn't need it so we can save joining on the filecache Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #41015 from nextcloud/background-scan-catch-storage-errorRobin Appelman2024-02-071-23/+27
|\ | | | | continue background scanning different storages if one fails
| * Merge branch 'master' into background-scan-catch-storage-errorRobin Appelman2024-01-3144-298/+593
| |\
| * | continue background scanning different storages if one failsRobin Appelman2023-10-201-23/+27
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #43361 from ↵Ferdinand Thiessen2024-02-061-0/+3
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/add-missing-phpdoc-template-parameters chore: Add missing ArrayAccess template parameters
| * | | chore: Add missing ArrayAccess template parametersCôme Chilliet2024-02-061-0/+3
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #43131 from ↵Christoph Wurst2024-02-061-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | nextcloud/fix/files/cache-wrapper-no-partial-cache-entry-formatting fix(files): Don't attempt to format a partial cache entry
| * | | fix(files): Don't attempt to format a partial cache entryChristoph Wurst2024-01-251-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | chore: Replace OC::$server->getL10N by OCP\Util::getL10N in lib and some appsCôme Chilliet2024-02-051-5/+5
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | refactor(objectstorage): cleanup typesThomas Citharel2024-02-023-15/+21
| | | | | | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | refactor(objectstorage): move $user property from ObjectStoreStorage class ↵Thomas Citharel2024-02-022-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | to HomeObjectStoreStorage Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | | fix(objectstorage): cleanup HomeObjectStoreStorageThomas Citharel2024-02-021-8/+4
| |_|/ |/| | | | | | | | | | | | | | Fix invalid signature for getUser() method and change occurences of OC\User\User for OCP\IUser Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | also updated parent etags when a changed etag is detected during scanningRobin Appelman2024-01-312-7/+30
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | dont reuse etag for folders marked explicitly unscannedRobin Appelman2024-01-311-1/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | dav: fix wrong decoding of pluses in URLsLorenz Brun2024-01-311-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHP's urldecode function does not decode URLs according to RFC 3986, but according to the HTML 4.01 query parameter encoding. This results in pluses being wrongly decoded to spaces even though they should not be decoded at all. Use rawurldecode instead, which follows RFC 3986 properly. This fixes an issue where files on DAV shares containing pluses were incorrectly decoded to spaces. Fixes: #15849 Signed-off-by: Lorenz Brun <lorenz@brun.one>
* | perf: Avoid updating the folder size if we know the size differenceJulius Härtl2024-01-122-15/+19
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>