aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
Commit message (Collapse)AuthorAgeFilesLines
* perf(files): faster query to fetch incomplete directoriesbackport/50781/stable31Benjamin 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-112-0/+16
| | | | | | detected an update Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Harden files scanner for invalid null accessbackport/50436/stable31Ferdinand 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 searchbackport/50273/stable31Louis Chemineau2025-01-251-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>
* | chore: Fix psalm issues, put back private versions of getter in private ↵Côme Chilliet2024-09-161-6/+7
| | | | | | | | | | | | Storage interface Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #47852 from nextcloud/sharding-code-fixesJohn Molakvoæ2024-09-161-1/+1
|\ \
| * | fix: misc code fixes around db shardingsharding-code-fixesRobin Appelman2024-09-091-1/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix(files): Adjust Cache::searchQuery() parameter name to match interfaceprovokateurin2024-09-132-4/+4
|/ / | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | chore: adjust code to adhere to coding standardAnna Larch2024-09-051-1/+1
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | chore: Apply php:cs recommendationsLouis Chemineau2024-08-281-9/+9
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix: hint storage id in more placesRobin Appelman2024-08-281-2/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | feat: implement distributing partitioned queries over multiple shardsRobin Appelman2024-08-281-4/+92
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-255-8/+8
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: make batch propagator work with sharding restrictionsRobin Appelman2024-07-171-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: make joining on tags in search queries work with shardingRobin Appelman2024-07-171-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: always set storage id in Cache::getRobin Appelman2024-07-171-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: add set storage id for more cache queriesRobin Appelman2024-07-171-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add base class for extending the query builderRobin Appelman2024-07-124-18/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #45172 from nextcloud/test-scanner-no-transactionsRobin Appelman2024-06-131-1/+5
|\ | | | | feat: add option to disable scanner transactions
| * feat: add option to disable scanner transactionsRobin Appelman2024-05-031-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: get child ids for folder in a separate query during moveRobin Appelman2024-06-131-4/+21
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(files): Use isRetryable to catch retryable exceptionsLouis Chemineau2024-06-111-2/+6
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | chore: Add SPDX headerAndy Scherzinger2024-05-2424-510/+79
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | Merge pull request #43794 from nextcloud/fix/files/scanner-metadata-diffCôme Chilliet2024-05-131-2/+47
|\ \ | | | | | | fix(files): handle multidimensional arrays in scanner
| * | fix(Files): Change how scanner diffs for changed metadataJosh2024-05-081-2/+47
| |/ | | | | | | | | Fixes #43408 Signed-off-by: Josh <josh.t.richards@gmail.com>
* | Merge pull request #45058 from nextcloud/perf/db/sort-before-chunkingChristoph Wurst2024-05-071-0/+3
|\ \ | |/ |/| perf(db): Sort data for IN before chunking
| * perf(db): Sort data for IN before chunkingChristoph Wurst2024-04-261-0/+3
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>