aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* refactor(IMenuAction): Make public menu actions use the new Vue UIFerdinand Thiessen2024-09-031-2/+0
| | | | | | | | This removes custom rendering code an replaces it with the declarative menu actions. Also adjust the template to allow the Vue UI to mount. Custom entries still are possible. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Remove unused `CsrfTokenManager` from `CSPMiddleware`Ferdinand Thiessen2024-08-311-5/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(TaskProcessing): Fix namespace of TaskProcessingTest.phpMarcel Klehr2024-08-301-1/+1
| | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net> Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* fix(taskprocessing): fix testsJulien Veyssier2024-08-302-13/+5
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Merge pull request #47546 from nextcloud/fix/files-view-error-messagesAndy Scherzinger2024-08-291-1/+1
|\ | | | | fix: Adjust filename validation messages
| * fix: Adjust filename validation messagesFerdinand Thiessen2024-08-271-1/+1
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | test(phpunit): skip sharding tests on 32bitArthur Schiwon2024-08-292-0/+6
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix(tests): Fix ImageTest testCôme Chilliet2024-08-291-5/+7
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Remove all references to OC_ImageCôme Chilliet2024-08-293-57/+60
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Renaming does not need update but delete permissionsFerdinand Thiessen2024-08-281-3/+3
| | | | | | | | | | | | | | Renaming is basically copy + delete (a move), so no need to update permissions. Especially if the node is in a invalid directory the node should be moveable but not editable. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | chore: Apply php:cs recommendationsLouis Chemineau2024-08-285-18/+18
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix: implement sharding compatible cleanup for various bitsRobin Appelman2024-08-282-11/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test: fix share provider tests for shardingRobin Appelman2024-08-282-6/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test: run sharding tests in ciRobin Appelman2024-08-281-0/+21
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test: mark share test cleanup as running across all shardsRobin Appelman2024-08-281-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | feat: implement distributing partitioned queries over multiple shardsRobin Appelman2024-08-285-2/+154
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | feat: add option to automatically partition queries by specific tablesRobin Appelman2024-08-282-0/+290
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: delay calculating global cache prefix untill a cache is createdRobin Appelman2024-08-281-3/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-25110-4067/+4067
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* perf: delay getting (sub)admin status for user in the security middleware ↵Robin Appelman2024-08-231-2/+15
| | | | | | untill we need it Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(Security): Allow setting password context for validation and generationFerdinand Thiessen2024-08-222-0/+61
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #47259 from nextcloud/memcache-ncadRobin Appelman2024-08-211-0/+23
|\ | | | | feat: add negative compare-and-delete to imemcache
| * feat: add negative compare-and-delete to imemcacheRobin Appelman2024-08-201-0/+23
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | ci: Skip flaky test on PHP 8.3Joas Schilling2024-08-211-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix: `FilenameValidator::isForbidden` should only check forbidden filesFerdinand Thiessen2024-08-211-17/+7
|/ | | | | | And not forbidden basenames as this is used for different purposes. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor(Log): Use new in initializer instead of constructor bodyFerdinand Thiessen2024-08-171-7/+5
| | | | | | | PHP 8.1 allows us to now move the `new` into the initializer, this makes the code a bit nicer (and 3 lines shorter). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge branch 'master' into jr-readdir-false-falseJohn Molakvoæ2024-08-16651-24465/+14167
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * Merge pull request #43573 from nextcloud/HolgerHees-fix-csp-nonce-handlingFerdinand Thiessen2024-08-134-262/+267
| |\ | | | | | | Fix for ignored `CSP_NONCE` in ContentSecurity Header
| | * feat: Provide CSP nonce as `<meta>` elementFerdinand Thiessen2024-08-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | This way we use the CSP nonce for dynamically loaded scripts. Important to notice: The CSP nonce must NOT be injected in `content` as this can lead to value exfiltration using e.g. side-channel attacts (CSS selectors). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| | * test: Adjust tests for CSP nonceFerdinand Thiessen2024-08-134-261/+267
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | feat(auth): Clean-up unused auth tokens and wipe tokensChristoph Wurst2024-08-131-11/+10
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | fix(tests): Adapt tests to change of DefaultShareProvider constructorCôme Chilliet2024-08-121-6/+15
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix(SetupCheck): Properly check public access to data directoryFerdinand Thiessen2024-08-082-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | When checking for public (web) access to the data directory the status is not enough as you might have a webserver that forwards to e.g. a login page. So instead check that the content of the file matches. For this the `.ncdata` file (renamed from `.ocdata`¹) has minimal text content to allow checking. ¹The file was renamed from the legacy `.ocdata`, there is a repair step to remove the old one. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * fix(session): Log when session_* calls are slowChristoph Wurst2024-08-073-17/+17
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * fix: Fix failing test for group listingJulius Härtl2024-08-061-0/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Merge pull request #46967 from nextcloud/fix/share-not-foundJohn Molakvoæ2024-08-061-2/+4
| |\
| | * fix(files_sharing): show proper share not found error messageskjnldsv2024-08-061-2/+4
| | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
| * | Merge pull request #46985 from nextcloud/feat/email-share-formatJohn Molakvoæ2024-08-063-20/+20
| |\ \
| | * | fix: emails tests after new design fixesskjnldsv2024-08-063-20/+20
| | | | | | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
| * | | chore(tests): Adapt tests to the group:list changeCôme Chilliet2024-08-061-28/+32
| | |/ | |/| | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: unify bundle namingJérôme Herbinet2024-08-061-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com> Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
| * | chore: delete repair step for 8y old oc_mounts issueRobin Appelman2024-08-021-114/+0
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * chore: Remove deprecated legacy search backendJulius Härtl2024-08-011-2/+0
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Merge pull request #46476 from nextcloud/enh/noid/migration-attributesStephan Orbaugh2024-07-302-4/+386
| |\ | | | | | | Migration Attributes
| | * feat(migration-attributes): testsMaxence Lange2024-07-292-4/+386
| | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * | feat(log): Allow to combine log.conditions to only log (app&user)Joas Schilling2024-07-301-0/+90
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Merge pull request #46379 from nextcloud/fix/folder-search-ownerFerdinand Thiessen2024-07-301-3/+11
| |\ \ | | |/ | |/| fix: `OCP\Files\Node\Folder::search` was not setting the owner
| | * fix: `OCP\Files\Node\Folder::search` was not setting the ownerFerdinand Thiessen2024-07-111-3/+11
| | | | | | | | | | | | | | | | | | The owner was not set on the file info causing e.g. webdav searches to never return the known owner. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | Merge pull request #46760 from nextcloud/fix/appframework/csrf-custom-headerJohn Molakvoæ2024-07-271-0/+20
| |\ \
| | * | fix(AppFramework): Allow requests with OCS-APIRequest header to pass CSRF checksprovokateurin2024-07-251-0/+20
| | | | | | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>