aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
Commit message (Collapse)AuthorAgeFilesLines
* fix(FileAccess): Use one param for rewriting home dirs and excluding ↵feat/getByAncestorInStorageMarcel Klehr10 days1-3/+14
| | | | | | non-user files mounts Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess*): Change the way home dir root is found, remove the ↵Julien Veyssier10 days1-6/+2
| | | | | | excludeTrashbinMounts param of getDistinctMounts Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccess*): Adress review commentsJulien Veyssier10 days1-8/+7
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccess): exclude trashbin nodes on the oc_filecache query, there is ↵Julien Veyssier10 days1-8/+8
| | | | | | no trashbin mount Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccess*): Adress review commentsJulien Veyssier10 days1-31/+8
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccessTest): Adress review commentsMarcel Klehr10 days1-15/+19
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccessTest): Do not use LIMIT in subqueryMarcel Klehr10 days1-1/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess#getDistinctMounts): Order results deterministicallyMarcel Klehr10 days1-1/+2
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess#getByAncestorInStorage): Use a subquery to fix testsMarcel Klehr10 days1-4/+12
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess): Add testsMarcel Klehr10 days1-9/+9
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess): Run cs:fixMarcel Klehr10 days1-3/+3
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess): Address review commentsMarcel Klehr10 days1-7/+9
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: Fix psalm issuesMarcel Klehr10 days1-2/+2
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(IFileAccess#getMounts): Add new method to retrieve all distinct mountsMarcel Klehr10 days1-1/+62
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(IFileAccess#getByAncestorInStorage): Add new method to retrieve all ↵Marcel Klehr10 days1-0/+67
| | | | | | files in a mount Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* chore: apply new CSFixer rulesFerdinand Thiessen2025-07-014-2/+5
| | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
* fix: Run cleanByMoundId query on all shardsJoas Schilling2025-06-061-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: improve error message when cache rename source can't be foundcache-rename-source-errorRobin Appelman2025-05-151-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: fix unjailedroot of nested jails if there are other wrappers in betweennested-jail-rootRobin Appelman2025-05-131-4/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* test: add test for nested cache jail unjailedrootRobin Appelman2025-05-131-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: better error message when trying to scan a folder that is already being ↵scan-locked-errorRobin Appelman2025-04-251-5/+5
| | | | | | scanned Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(cache): always require updates if mtime is nullfix/require-update-if-mtime-is-nullFerdinand Thiessen2025-04-041-1/+1
| | | | | | | | | | - Resolves https://github.com/nextcloud/server/issues/51941 Due to strong typings we introduced the parameter needs to be an integer. Previously it was `null` which was equal to `0`. So if there is no storage mtime we need to update the cache. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: add getParentId to ICacheEntryRobin Appelman2025-03-281-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf(files): faster query to fetch incomplete directoriesperf/improve-incomplete-scanBenjamin Gaussorgues2025-02-131-14/+5
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: don't use cached root info from shared cache if the watcher has ↵Robin Appelman2025-02-062-0/+16
| | | | | | detected an update Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Harden files scanner for invalid null accessFerdinand Thiessen2025-01-284-165/+163
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Metadata field searchartonge/fix/metadata_field_searchLouis Chemineau2025-01-201-6/+11
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Fix copying to the root of another mountpointfix/fix-copy-to-mountpoint-rootCôme Chilliet2024-12-171-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "fix: don't recalculate folder size in Cache::delete if the entry ↵ci/revert/47342Daniel Kesselberg2024-12-161-0/+3
| | | | | | | | didn't exist" This reverts commit 5ca9d884d78fd4439a74dde02fdcafb3ac7a40f4. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #47342 from nextcloud/cache-delete-notfound-sizeRobin Appelman2024-12-121-3/+0
|\ | | | | fix: don't recalculate folder size in Cache::delete if the entry didn't exist
| * fix: don't recalculate folder size in Cache::delete if the entry didn't existcache-delete-notfound-sizeRobin Appelman2024-08-201-3/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #40394 from nextcloud/updater-change-mimetype-objectstoreJohn Molakvoæ2024-12-111-9/+13
|\ \
| * | fix: fix mimetype not being updated when changing file extention on object storeupdater-change-mimetype-objectstoreRobin Appelman2024-12-051-9/+13
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix: only do cache copy in updater if the parent folder should be in cachecopy-update-cache-excludedRobin Appelman2024-12-061-1/+9
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #48769 from nextcloud/copy-share-unmaskedRobin Appelman2024-12-041-1/+8
|\ \ | | | | | | Fix incorrect permissions when copying shared files
| * | fix: use scan_permissions when copying cache itemsRobin Appelman2024-12-041-1/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix: store unmaked source permissions as scan_permissions when loading share ↵Robin Appelman2024-12-041-0/+3
| | | | | | | | | | | | | | | | | | cache items Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #49551 from nextcloud/dont-propagate-future-timeJohn Molakvoæ2024-12-041-2/+9
|\ \ \ | |/ / |/| |
| * | fix: don't propagate future mtimesRobin Appelman2024-11-281-2/+9
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix(files): Correctly copy the cache information on copy operationsLouis Chemineau2024-12-031-9/+32
|/ / | | | | | | | | | | Needed to copy the `encrypted` flag of encrypted files when those files are two level down in a moved folder. Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix: Wrap partial cache entry in CacheEntryartonge/fix/getting_cache_entryLouis Chemineau2024-11-211-2/+2
| | | | | | | | | | | | | | | | Because it is returned here: https://github.com/nextcloud/server/blob/7b7d07c5750583ab3a7b29112af475f5c8891143/lib/private/Files/Cache/Cache.php#L136-L137 And some implementation got stricter: https://github.com/nextcloud/groupfolders/blob/df95bf6ba807da5171de91108879b6d8aa9f3611/lib/Mount/RootEntryCache.php#L23-L28 Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(cache): etag constraint violationfix/etag-constraint-search-queryskjnldsv2024-11-211-1/+1
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | feat(systemtags): add etag support and handle proppatchskjnldsv2024-10-291-1/+1
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixerdependabot/composer/vendor-bin/cs-fixer/nextcloud/coding-standard-1.3.2dependabot[bot]2024-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
* | chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-173-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* | chore(db): Correctly apply query typesGit'Fellow2024-10-172-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix: psalm fix: error fix: add batch fix: fatal error fix: add batch chore: add batch chore: add batch fix: psalm fix: typo fix: psalm fix: return bool fix: revert Manager
* | chore: Add proper deprecation dates where missingFerdinand Thiessen2024-09-201-1/+1
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-193-6/+6
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix: fix share reminder job for oracleoracle-share-reminderRobin Appelman2024-09-181-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: verify that parent exists in cache when insertingRobin Appelman2024-09-181-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>