summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Store size in int|float for 32bit supportCôme Chilliet2023-09-192-4/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #39039 from fsamapoor/refactor_lib_private_logChristoph Wurst2023-09-1810-149/+77
|\ | | | | Refactors lib/private/Log
| * Refactors lib/private/Log.Faraz Samapoor2023-06-2810-149/+77
| | | | | | | | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* | Merge pull request #40421 from nextcloud/fix/openapi/core/reference-apiJulien Veyssier2023-09-172-1/+8
|\ \ | | | | | | core: Fix OpenAPI for reference API
| * | core: Fix OpenAPI for reference APIjld31032023-09-142-1/+8
| | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | Merge pull request #40203 from lhsazevedo/fix/mimetype-40064Simon L2023-09-161-19/+17
|\ \ \ | |/ / |/| |
| * | Wrap mimetype insert and getLastInsertId in a transactionLucas Azevedo2023-09-041-7/+9
| | | | | | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
| * | fix(mimetype): Remove unnecessary transaction when storing a mime typeLucas Azevedo2023-09-011-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>
* | | fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-1/+10
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | test: add tests for dns pin middlewareDaniel Kesselberg2023-09-121-2/+9
| | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | Merge pull request #32912 from nextcloud/group-backend-batch-methodCôme Chilliet2023-09-118-18/+252
|\ \ \ | | | | | | | | Add batch methods in user backends
| * | | Build query once instead of in-loopCôme Chilliet2023-09-071-5/+6
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix psalm spotted type errorsCôme Chilliet2023-09-052-12/+12
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Move new methods to a new interface in OCPCôme Chilliet2023-09-058-36/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids breaking compatibility for group backends not based on ABackend abstract class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix psalm errors about groupExists return typeCôme Chilliet2023-09-051-8/+4
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Add batch methods in user backendsCarl Schwan2023-09-055-17/+205
| | | | | | | | | | | | | | | | | | | | | | | | This allows for faster group search with significantly less DB traffic Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | fix(autoloader): no apcu no side effectsArthur Schiwon2023-09-082-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apcu lead to side effects especially with app management and (soft) inter-dependencies, and lead also to 500 server errors. While we could add management to clear apcu cache in many cases (may stil leave edge cases) the performance benefit is marginally as also class maps are already cached in opcache. Hence, the simple and effective way to go is to not use apcu for autoloading. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | | feat: Add dedicated method to load init scriptsJulius Härtl2023-09-071-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Co-authored-by: John Molakvoæ <skjnldsv@protonmail.com> Update lib/public/Util.php Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #40285 from nextcloud/backport/40233/masterCôme Chilliet2023-09-075-2/+51
|\ \ \ \ | | | | | | | | | | 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-075-2/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | output buffer Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | | | Merge pull request #40216 from ↵Côme Chilliet2023-09-071-0/+4
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | nextcloud/print-log-message-when-version-could-not-be-got-from-updater-server Print log message when version could not be got from updater server
| * | | | Print log message when version could not be got from updater serverDaniel Calviño Sánchez2023-09-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This could help to diagnose why the updater server could not be reached, as well as other subtler issues like requests taking too long if the updater server was tried to be connected to as a "side effect" (for example, when the "updatenotification" app boots). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | | Merge pull request #40295 from nextcloud/appecosystem-renamingAndy Scherzinger2023-09-071-6/+6
|\ \ \ \ \ | | | | | | | | | | | | Rename AppEcosystemV2 to AppAPI
| * | | | | new name of AppEcosystem is AppAPIAlexander Piskun2023-09-061-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
* | | | | | Fix(l10n): Update translations from TransifexNextcloud bot2023-09-074-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | | Merge pull request #38808 from ↵Julius Härtl2023-09-064-4/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/store-unencrypted-homefolder
| * | | | | | fix: Only read unencrypted_size when file is actually encryptedJulius Härtl2023-09-062-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | | | | fix: Only store unencrypted_size if path should be encryptedJulius Härtl2023-09-062-1/+3
| |/ / / / / | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / / / / / fix(ratelimit): Only use memory cache backend for redisJoas Schilling2023-09-061-2/+2
|/ / / / / | | | | | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | | | Merge pull request #35539 from ↵Côme Chilliet2023-09-058-85/+62
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | nextcloud/cleanup/carl/application-contactsmanager Cleanup psalm issues in DB/ContactsManager and Console
| * | | | | Fix Exception catching in OC\DB\AdapterCôme Chilliet2023-09-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | | | Cleanup plsam issues in DB/ContactsManager and ConsoleCarl Schwan2023-09-058-83/+56
| | |/ / / | |/| | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | reuse isValidPath from FilesystemRobin Appelman2023-09-042-15/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | make LazyFolder::get not load the real folder if we know the pathRobin Appelman2023-09-044-27/+56
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | add IFileInfo::getParentIdRobin Appelman2023-09-044-7/+28
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | make Node::getParent lazyRobin Appelman2023-09-041-1/+10
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | allow passing more info to lazy folderRobin Appelman2023-09-041-0/+18
|/ / / / | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #40234 from ↵Daniel2023-09-041-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | nextcloud/enh/noid/skip-processing-for-empty-response
| * | | | enh: skip processing for empty responseDaniel Kesselberg2023-09-041-0/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | | | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-0411-114/+133
|\ \ \ \ \ | |/ / / / |/| | | | move share permission logic to storage wrapper
| * | | | cleanup di for share permissions wrapperRobin Appelman2023-08-167-116/+117
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | more share permission logic to storage wrapperRobin Appelman2023-08-145-10/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | Merge pull request #39707 from ↵Simon L2023-09-041-0/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
| * | | | | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an external storage of type Local points at a non-existing directory, process this as a StorageNotAvailable instead of returning 404. This makes desktop clients ignore the folder instead of deleting it when it becomes unavailable. The code change was limited to external storages to avoid issues during setup and with the default home storage. Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
* | | | | | Merge pull request #40195 from nextcloud/fix/defaultpermissions-rootfolderJohn Molakvoæ2023-09-041-1/+2
|\ \ \ \ \ \
| * | | | | | fix: prevent sharing permissions on user root folderJohn Molakvoæ2023-09-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | | | | | Fix(l10n): Update translations from TransifexNextcloud bot2023-09-032-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | | | Merge pull request #40075 from nextcloud/bugfix/noid/fix-parameter-name-changeJoas Schilling2023-09-021-2/+2
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | fix(API): Fix parameter name to match interface
| * | | | | | fix(API): Fix parameter name to match interfaceJoas Schilling2023-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | | | Merge pull request #26716 from nextcloud/fix/sharing-do-no-get-after-createJohn Molakvoæ2023-09-022-33/+24
|\ \ \ \ \ \ \