aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* fix(FileAccess): Use one param for rewriting home dirs and excluding ↵feat/getByAncestorInStorageMarcel Klehr6 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 Veyssier6 days1-6/+2
| | | | | | excludeTrashbinMounts param of getDistinctMounts Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccess*): Adress review commentsJulien Veyssier6 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 Veyssier6 days1-8/+8
| | | | | | no trashbin mount Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccess*): Adress review commentsJulien Veyssier6 days1-31/+8
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(FileAccessTest): Adress review commentsMarcel Klehr6 days1-15/+19
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccessTest): Do not use LIMIT in subqueryMarcel Klehr6 days1-1/+0
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess#getDistinctMounts): Order results deterministicallyMarcel Klehr6 days1-1/+2
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess#getByAncestorInStorage): Use a subquery to fix testsMarcel Klehr6 days1-4/+12
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess): Add testsMarcel Klehr6 days1-9/+9
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess): Run cs:fixMarcel Klehr6 days1-3/+3
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(FileAccess): Address review commentsMarcel Klehr6 days1-7/+9
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: Fix psalm issuesMarcel Klehr6 days1-2/+2
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(IFileAccess#getMounts): Add new method to retrieve all distinct mountsMarcel Klehr6 days1-1/+62
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat(IFileAccess#getByAncestorInStorage): Add new method to retrieve all ↵Marcel Klehr6 days1-0/+67
| | | | | | files in a mount Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: Replace OC_App::loadApp calls by IAppManagerCôme Chilliet11 days2-2/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(encryption): Correctly handle file opening and copying failuresfix/catch-exception-in-encrypt-allCôme Chilliet2025-07-031-3/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply new CSFixer rulesFerdinand Thiessen2025-07-0131-47/+65
| | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
* fix: handle ambiguous IResponse.getBody return typesdebt/noid/wrong-return-type-iresponseDaniel Kesselberg2025-06-301-1/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: remove double cache write in ObjectStoreStorage::touchRobin Appelman2025-06-181-10/+0
| | | | | | the file_put_contents already puts all of those values into the cache Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #53419 from ↵Kent Delante2025-06-181-17/+43
|\ | | | | | | | | nextcloud/leftybournes/fix/object_storage_large_uploads fix(s3): retry failed multipart uploads with decreased concurrency
| * fix(s3): retry failed multipart uploads with decreased concurrencyleftybournes/fix/object_storage_large_uploadsKent Delante2025-06-101-17/+43
| | | | | | | | Signed-off-by: Kent Delante <kent.delante@proton.me>
* | fix(FilenameValidator): use `_` as default replacement for invalid charsfix/validation-defaultsFerdinand Thiessen2025-06-181-1/+1
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(ObjectStore): Make S3 "connect_timeout" option configurablefix/noid/make-s3-connect-timeout-option-configurableDaniel Calviño Sánchez2025-06-162-2/+6
|/ | | | | | | | | | | The hardcoded connection timeout of 5 seconds may not be enough in some cases, so now it is got from the ObjectStore arguments in Nextcloud configuration, falling back to 5 if not set. The connection timeout is set in seconds, but decimal precision can be used for subsecond accuracy (for example, 4.2 for 4200 milliseconds). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* fix: Run cleanByMoundId query on all shardsJoas Schilling2025-06-061-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(dav): file drop nicknameskjnldsv2025-06-052-0/+12
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Merge pull request #52242 from nextcloud/artonge/fix/copy_subfolders_s3Louis2025-06-021-3/+3
|\
| * perf: set the folder size in the same query as we create itRobin Appelman2025-05-281-7/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix(S3): Use original folder size during copyLouis Chemineau2025-05-281-0/+4
| | | | | | | | | | | | | | | | This prevent having copied folders with a wrongly set size of 0KB. - Fix https://github.com/nextcloud/server/issues/51916 Signed-off-by: Louis Chemineau <louis@chmn.me>
* | feat: move primary object store configuration to a single placeprimary-object-store-settingsRobin Appelman2025-05-283-144/+168
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(node): emit hooks on `Node::copy()`Jonas2025-05-271-2/+2
| | | | | | | | | | | | | | | | | When calling `Files\Node\Node::copy()`, `Files\View::copy()` gets called, but `Files\View::fakeRoot` is empty so the hooks are not emitted if no path is given to `Files\View::shouldEmitHooks()`. This results in node-related events like `NodeCopiedEvent` not being fired when copying files via `Files\Node\Node::copy()`. `Files\View::shouldEmitHooks()` is given a path as parameter in almost all places except when called from the `copy()` function. This commit changes it and passes the copy target path. Fixes: nextcloud/collectives#1756 Signed-off-by: Jonas <jonas@freesources.org>
* feat(IUser): add `getQuotaBytes` method to get machine readable quotafeat/user-get-quota-bytesFerdinand Thiessen2025-05-221-2/+1
| | | | | | | | | | | Proper replacement for deprecated `OC_Util::getUserQuota`. Also we still use this in some cases we can now replace, moreover it just makes sense to have a machine readable format in the API instead of only the human readable format which is less precise. Alings also with `getQuota` of the quota storage, which already returned the machine readable format. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(SetupManager): Include home and root providers when registering mountsfix/setupmanager/home-root-providers-register-mountsprovokateurin2025-05-202-57/+68
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat: only load template fields when requestedElizabeth Danzberger2025-05-191-2/+63
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* feat(UserMountCache): Emit events for added, removed and updated mountsfeat/mountmanager/emit-eventsprovokateurin2025-05-191-7/+24
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: move streamCopy implementation from `OC_Helper` to `OCP\Files`Ferdinand Thiessen2025-05-166-8/+15
| | | | | | | | | The function was already there but called the legacy version. So moved the implementation and migrated all usages of it. Sadly the interface was slightly different so adjusted it to be compatible with both legacy and the OCP one. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>
* Merge pull request #52822 from nextcloud/feat/mime-namesJohn Molakvoæ2025-05-151-0/+22
|\
| * feat(core): add human readable mimesJohn Molakvoæ (skjnldsv)2025-05-141-0/+22
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #52812 from nextcloud/chore/oc-helper-rmdirrJohn Molakvoæ2025-05-141-2/+6
|\ \
| * | chore: move implementation from OC legacy to OCP\Fileschore/oc-helper-rmdirrFerdinand Thiessen2025-05-141-2/+6
| |/ | | | | | | | | | | | | | | | | - move implementation to the OCP variant that called the legacy before - add the missing deprecation notice - add missing parameter to align both signatures - use OCP\Files where this method is still used Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #48560 from nextcloud/fix/migrate-encryption-away-from-hooksCôme Chilliet2025-05-141-9/+20
|\ \ | | | | | | feat(encryption): Migrate from hooks to events
| * | fix(encryption): Only prevent cache deletion if target is not object store ↵Côme Chilliet2025-05-131-2/+3
| | | | | | | | | | | | | | | | | | in moveFromStorage Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix(encryption): Improve Update class and event listeneningCôme Chilliet2025-05-131-2/+0
| | | | | | | | | | | | | | | | | | to avoid back&forth between path and Node object Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Preserve file id when moving from object store even if encryption ↵Côme Chilliet2025-05-131-4/+15
| | | | | | | | | | | | | | | | | | wrapper is present Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: Fix mtime preservation when moving a directory across storages with ↵Côme Chilliet2025-05-131-1/+1
| | | | | | | | | | | | | | | | | | encryption registered Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix(encryption): Fix filesize for part files in Encryption wrapperCôme Chilliet2025-05-131-2/+3
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #52775 from nextcloud/nested-jail-rootAndy Scherzinger2025-05-141-5/+8
|\ \ | | | | | | fix unjailedroot of nested jails if there are other wrappers in between
| * | 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>