aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* feat: allow configuring multiple objectstore configurationsmulti-object-storeRobin Appelman7 days1-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: move primary object store configuration to a single placeRobin Appelman7 days3-110/+141
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #52688 from nextcloud/feat/ocp-sanitize-filenamesCôme Chilliet8 days1-0/+134
|\ | | | | feat(FilenameValidator): allow to sanitize filenames
| * feat(FilenameValidator): allow to sanitize filenamesfeat/ocp-sanitize-filenamesFerdinand Thiessen8 days1-0/+134
| | | | | | | | | | | | Share the filename sanitizing with the OCP filename validator. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix: check if properties exist before using themfix/noid-check-for-properties-before-processingSebastianKrupinski9 days1-176/+804
|/ | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* Merge pull request #52634 from nextcloud/perf/share20/get-all-shares-in-folderKate13 days1-15/+8
|\
| * perf(Share20): Add interface to query all shares in a folder without ↵perf/share20/get-all-shares-in-folderprovokateurin13 days1-15/+8
| | | | | | | | | | | | filtering by user Signed-off-by: provokateurin <kate@provokateurin.de>
* | Merge pull request #52360 from ↵Louis2025-05-061-22/+10
|\ \ | |/ |/| | | nextcloud/artonge/fix/use_preview_api_for_blurhash_generation
| * fix(blurhash): Use preview API to generate the previewsartonge/fix/use_preview_api_for_blurhash_generationLouis Chemineau2025-05-051-22/+10
| | | | | | | | | | | | | | This allows to benefit from all the checks done by the preview API. This also use the newly introduced `cacheResult` argument to limit disk usage. Signed-off-by: Louis Chemineau <louis@chmn.me>
* | test: Fix coding standardsbugfix/noid/make-comments-test-better-readableJoas Schilling2025-05-051-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | test(comments): Make Comments test result output properly readableJoas Schilling2025-05-051-184/+158
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* test: Finish migrating tests/Core/ to PHPUnit 10 compatible codetest/noid/more-phpunit-10Joas Schilling2025-05-0213-689/+615
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* test: Prepare more tests for PHPUnit 10Joas Schilling2025-04-309-129/+125
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(navigation): Fix default app entry registered as closureJoas Schilling2025-04-251-3/+37
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #52299 from nextcloud/refactor/preview-testsFerdinand Thiessen2025-04-242-46/+30
|\ | | | | refactor: Thumbnail Generator logging and tests
| * refactor: Thumbnail Generator logging and testsrefactor/preview-testsnfebe2025-04-232-46/+30
| | | | | | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* | fix(federation): allows equal signs in federation idfix/noid/allows-some-char-from-federationidMaxence Lange2025-04-221-0/+4
|/ | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge pull request #52221 from ↵F. E Noel Nfebe2025-04-221-1/+6
|\ | | | | | | | | nextcloud/feat/no-issue/add-logging-preview-generation feat: add logging to preview generation
| * feat: add logging to preview generationfeat/no-issue/add-logging-preview-generationnfebe2025-04-171-1/+6
| | | | | | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* | Merge pull request #52224 from ↵Arthur Schiwon2025-04-171-0/+29
|\ \ | |/ |/| | | | | nextcloud/bugfix/noid/dont-break-when-checking-if-too-long-user-exists fix(usermanager): Don't throw when checking if a too long user id is an existing user
| * fix(usermanager): Don't throw when checking if a too long user id is an ↵Joas Schilling2025-04-161-0/+29
| | | | | | | | | | | | existing user Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(mail): use matching text color for primary elementsfix/use-also-default-textFerdinand Thiessen2025-04-171-12/+12
| | | | | | | | | | | | | | when we use the default primary as background color we have to use the default primary text color as well. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | feat(ip): add configurable IPv6 subnet for BFP and throttlingfeat/add-configurable-ipv6-subnetBenjamin Gaussorgues2025-04-171-4/+4
|/ | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #51020 from nextcloud/artonge/fix/transfer_ownershipLouis2025-04-141-0/+18
|\
| * fix: Transfer ownership with S3 as primaryartonge/fix/transfer_ownershipLouis Chemineau2025-04-011-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using S3 as primary storage, transferring ownership with the `--move` option fail with the following error: `SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '8-45b963397aa40d4a0063e0d85e4fe7a1' for key 'fs_storage_path_hash'` The `--move` option moves the entire home folder from one account to another. The error means that the move failed because the destination folder already exist in `oc_filecache`. - With S3 as primary storage, folders only exists as entries in `oc_filecache`. - With S3 as primary storage, `moveFromStorage(...)` only moves the cache entry, as nothing needs to be moved on disk. This cache move does not delete potentially pre-existing destination folder. - With Local storage, `moveFromStorage(...)` calls `rename(...)` which delete pre-existing folder. - `transfer(...)`: https://github.com/nextcloud/server/blob/687a4d9ac7fcdbd935f81a0def567a1092306f7a/apps/files/lib/Service/OwnershipTransferService.php#L112 - `oneTimeUserSetup(...)`: https://github.com/nextcloud/server/blob/687a4d9ac7fcdbd935f81a0def567a1092306f7a/lib/private/Files/SetupManager.php#L261-L262 - `mkdir(...)`: https://github.com/nextcloud/server/blob/687a4d9ac7fcdbd935f81a0def567a1092306f7a/lib/private/Files/ObjectStore/ObjectStoreStorage.php#L91-L135 - `moveFromStorage(...)`: https://github.com/nextcloud/server/blob/687a4d9ac7fcdbd935f81a0def567a1092306f7a/lib/private/Files/ObjectStore/ObjectStoreStorage.php#L635-L636 Delete pre-existing folder in `moveFromStorage(...)` Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Merge pull request #52086 from nextcloud/fix/cleanup-user-backendsCôme Chilliet2025-04-144-7/+14
|\ \ | | | | | | Cleanup user backends related methods
| * | fix: Replace all usages of OC_User backend method calls by IUserManagerfix/cleanup-user-backendsCôme Chilliet2025-04-104-7/+14
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #52085 from ↵Anna2025-04-101-0/+28
|\ \ \ | |/ / |/| | | | | | | | nextcloud/bugfix/noid/fix-cached-return-of-display-name fix(federation): Fix returning "no display name" after cache result
| * | fix(federation): Fix returning "no display name" after cache resultbugfix/noid/fix-cached-return-of-display-nameJoas Schilling2025-04-101-0/+28
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #52050 from nextcloud/fix/noid/taskprocessing-appapiAlexander Piskun2025-04-101-1/+319
|\ \ \ | |/ / |/| | fix(taskprocessing): use the event for AppAPI to get list of AI providers
| * | fix(taskprocessing): use the event for AppAPI to get list of AI providersfix/noid/taskprocessing-appapiOleksander Piskun2025-04-091-1/+319
| | | | | | | | | | | | Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
* | | fix(files_sharing): fix share creation error handlingskjnldsv2025-04-091-1/+1
| | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | | Merge pull request #52070 from nextcloud/test/noid/improve-test-outputJoas Schilling2025-04-091-6/+6
|\ \ \ | | | | | | | | test: Improve comments manager test output in case of failure
| * | | test: Improve comments manager test output in case of failuretest/noid/improve-test-outputJoas Schilling2025-04-091-6/+6
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | fix(federation): Don't load the addressbook when resolving a cloud IDperf/noid/dont-load-addressbook-on-resolving-cloudidJoas Schilling2025-04-092-14/+39
|/ / / | | | | | | | | | | | | | | | Instead we delay the lookup of the display name until it is actually used Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Revert "refactor(RichObjectStrings): Only log error if key or value is not ↵revert/52035Joas Schilling2025-04-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | string in validator" This reverts commit fd156d3408a030c6bb98d9cdaf3790375d766eb5. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #51838 from nextcloud/feat/cleanup-oc-util-methodsJohn Molakvoæ2025-04-081-10/+10
|\ \ \ | |/ / |/| | Mark all methods of OC_Util as deprecated
| * | fix: Remove some call and references to deprecated OC_Util classCôme Chilliet2025-04-071-10/+10
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #52014 from nextcloud/fix/fix-movie-preview-constructKate2025-04-081-7/+10
|\ \ \ | | | | | | | | fix(preview): Fix constructor parameter name and default value
| * | | fix(previews): Cleanup Movie provider code and remove deprecated static varsfix/fix-movie-preview-constructCôme Chilliet2025-04-081-7/+10
| |/ / | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | refactor(RichObjectStrings): Only log error if key or value is not string in ↵fix/richobjectstrings/validator-string-key-value-errorprovokateurin2025-04-081-5/+0
| | | | | | | | | | | | | | | | | | validator Signed-off-by: provokateurin <kate@provokateurin.de>
* | | feat(ip): use larger IPv6 range by defaultfeat/larger_ipv6_rangeBenjamin Gaussorgues2025-04-081-5/+5
|/ / | | | | | | | | | | | | Some providers assign `/48` IPv6 blocks instead of `/64` so it sounds safer to use this mask by default. Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Merge pull request #51836 from nextcloud/feat/cleanup-oc-utilCôme Chilliet2025-04-031-57/+39
|\ \ | | | | | | chore(legacy): Remove deprecated OC_Util::addScript and functions depending on it
| * | chore(legacy): Remove deprecated OC_Util::addScript and functions depending ↵feat/cleanup-oc-utilCôme Chilliet2025-04-011-57/+39
| |/ | | | | | | | | | | | | | | | | | | on it Deprecated since 24, currently unused. Sadly not all related functions were officially marked as deprecated, but all of them were unused. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / fix(session): Only mark sessions of permanent tokens as app passwordsfix/session/permanent-token-app-passwordChristoph Wurst2025-04-031-0/+40
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #50768 from nextcloud/perf/cron/delay-timedjob-checkingChristoph Wurst2025-03-313-17/+52
|\ | | | | perf(cron): Delay (re)checking timed jobs
| * perf(cron): Delay (re)checking timed jobsperf/cron/delay-timedjob-checkingChristoph Wurst2025-03-313-17/+52
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #51768 from nextcloud/techdebt/noid/prepare-phpunit10Joas Schilling2025-03-314-168/+107
|\ \ | |/ |/| fix(phpunit10): Migrate away from PHPUnit at() calls
| * fix(phpunit): Remove some more withConsecutive callstechdebt/noid/prepare-phpunit10Joas Schilling2025-03-314-168/+107
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #51676 from nextcloud/fix/add-getappversions-replacementCôme Chilliet2025-03-311-0/+4
|\ \ | | | | | | Add OC_App::getAppVersions replacement in IAppManager