summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* fix: Throw instead of yielding nothing when listing local directoriesJulius Härtl2024-02-261-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #43246 from nextcloud/backport/41327/stable27Benjamin Gaussorgues2024-02-092-8/+32
|\
| * 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>
* | Merge pull request #43390 from nextcloud/backport/43131/stable27Git'Fellow2024-02-091-1/+1
|\ \ | | | | | | [stable27] fix(files): Don't attempt to format a partial cache entry
| * | fix(files): Don't attempt to format a partial cache entryChristoph Wurst2024-02-061-1/+1
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / continue background scanning different storages if one failsRobin Appelman2024-02-071-23/+27
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: reduce memory consumption of scansGit'Fellow2024-01-161-3/+6
| | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix lint Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(s3): Add config option to disable multipart copy for certain s3 providersJulius Härtl2023-12-292-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* only do a multipart s3 copy when above the regular copy limitRobin Appelman2023-12-292-11/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* setup filesystem wrappers before we mark the root as setupRobin Appelman2023-12-051-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add more checks to ensure mounts aren't emptyRobin Appelman2023-12-052-1/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(TemplateManager): Bail early if templatedirectory is emptyMarcel Klehr2023-12-041-0/+5
| | | | | | fixes #39266 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Merge pull request #41462 from nextcloud/backport/40996/stable27Arthur Schiwon2023-11-281-1/+1
|\ | | | | [stable27] reuse sharing disabled state when listing folder content
| * reuse sharing disabled state when listing folder contentRobin Appelman2023-11-141-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize UserMountCache::registerStorageRobin Appelman2023-11-163-57/+61
| | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Merge pull request #41502 from nextcloud/backport/40935/stable27Benjamin Gaussorgues2023-11-161-2/+31
|\ \ | | | | | | [stable27] add some support for rename on case insensitive local filesystems
| * | add some support for rename on case insensitive local filesystemsRobin Appelman2023-11-151-2/+31
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #41363 from nextcloud/optmize-storage-wrappers-27Benjamin Gaussorgues2023-11-165-39/+73
|\ \ | | | | | | [27] optimize builtin storage wrappers
| * | optimize isShared and isMountedRobin Appelman2023-11-091-18/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | optimize builtin storage wrappersRobin Appelman2023-11-094-21/+68
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / fix(s3): support SSE-C headers for the MultipartCopy callTobias Zimmerer2023-11-151-1/+7
|/ | | | Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
* optimize cache jail creationRobin Appelman2023-11-072-6/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-262-1/+20
| | | | Signed-off-by: Jonas <jonas@freesources.org>
* Merge pull request #40569 from nextcloud/backport/40499/stable27Arthur Schiwon2023-10-111-0/+142
|\ | | | | [stable27] add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| * add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-10-101-0/+142
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #40577 from nextcloud/s3-multipart-copy-27Julius Härtl2023-10-101-4/+12
|\ \ | |/ |/|
| * use multipart copy for s3Robin Appelman2023-09-221-4/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Store size in int|float for 32bit supportCôme Chilliet2023-09-252-4/+7
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #40379 from nextcloud/backport/38808/stable27Arthur Schiwon2023-09-214-4/+6
|\ | | | | [stable27] Fix issues where unencrypted_size was being falsely used for non-encrypted home folders
| * fix: Only read unencrypted_size when file is actually encryptedJulius Härtl2023-09-122-3/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * fix: Only store unencrypted_size if path should be encryptedJulius Härtl2023-09-122-1/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Wrap mimetype insert and getLastInsertId in a transactionLucas Azevedo2023-09-161-7/+9
| | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | fix(mimetype): Remove unnecessary transaction when storing a mime typeLucas Azevedo2023-09-161-26/+22
|/ | | | | | | | | | | | Fixes #40064. This could be fixed by adding a rollback and starting a new transaction before the SELECT query, but in this case that would have the same effect as not using one. See https://dev.mysql.com/doc/refman/8.0/en/innodb-autocommit-commit-rollback.html and https://www.postgresql.org/docs/7.1/sql-begin.html#R1-SQL-BEGIN-1 Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-09-072-4/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* reuse dependencies from wrapped cacheRobin Appelman2023-09-071-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #40286 from nextcloud/backport/40233/stable27Arthur Schiwon2023-09-071-2/+12
|\ | | | | [stable27] Detect aborted connection in OC\Files\View and stop writing data to t…
| * Detect aborted connection in OC\Files\View and stop writing data to the ↵Benjamin Gaussorgues2023-09-061-2/+12
| | | | | | | | | | | | output buffer Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Merge pull request #40231 from nextcloud/sharing-mask-wrapper-27Arthur Schiwon2023-09-065-77/+50
|\ \ | |/ |/| [27] move share permission logic to storage wrapper
| * cleanup di for share permissions wrapperRobin Appelman2023-09-042-79/+42
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * more share permission logic to storage wrapperRobin Appelman2023-09-044-10/+20
| | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #40227 from nextcloud/backport/40195/stable27Arthur Schiwon2023-09-051-1/+2
|\ \ | | | | | | [stable27] fix: prevent sharing permissions on user root folder
| * | fix: prevent sharing permissions on user root folderJohn Molakvoæ2023-09-041-1/+2
| |/ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* / fix(s3): fix handling verify_bucket_exists parameterThomas Citharel2023-08-311-1/+1
|/ | | | | | | | If 'verify_bucket_exists' is set to false in the config.php s3 configuration, it's supposed to avoid verifying that the bucket exists. However empty(falsy) will always return true, so this condition would not work. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* fix: don't emit Hooks when hookpaths are emptyAnna Larch2023-08-211-16/+24
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: Prevent PHP warnings when optional CacheEntry attributes are unsetFerdinand Thiessen2023-08-172-4/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* select the fileid first when looking for incomplete filesRobin Appelman2023-08-141-5/+9
| | | | | | this seems to improve mariadbs index selection Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: simplify `sourceData` checkJohn Molakvoæ2023-08-051-1/+1
| | | | Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* Catch more invalid cache source storage pathsJosh Richards2023-08-051-1/+1
| | | | | | | | | | OC\Files\Cache\Cache::get can return string|false|null, not just string|false. - nextcloud/server#26270 added handling of false, but null is needed too. - Well, or we change the default $resullt to false, but I'm not sure if that has other ramifications and the real need here is to simply catch situations where the cache source storage path is not valid for whatever reason Related: nextcloud/server#19009 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* Merge pull request #39642 from nextcloud/backport/39629/stable27Julius Härtl2023-08-031-1/+1
|\