aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #47927 from nextcloud/fix/migrate-away-from-oc_appCôme Chilliet2024-09-136-14/+35
|\ | | | | Migrate away from OC_App to IAppManager
| * chore(tests): Fix Router test by mocking AppManager methods correctlyCôme Chilliet2024-09-131-1/+13
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Replace OC_App::getAllApps with a method in AppManagerCôme Chilliet2024-09-132-6/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * chore: Migrate cleanAppId and getAppPath calls to IAppManager from OC_AppCôme Chilliet2024-09-133-7/+20
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #47865 from ↵Côme Chilliet2024-09-131-6/+6
|\ \ | | | | | | | | | | | | nextcloud/admin_audit/enh/move-to-event-listeners-v2 Move admin_audit to proper event listeners v2
| * | feat: Add mimetype into BeforePreviewFetchedEvent eventThomas Citharel2024-09-101-6/+6
| | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | fix(config): Throw PreconditionException always when it didn't matchJoas Schilling2024-09-131-0/+36
| |/ |/| | | | | | | | | | | | | Previously even when the precondition did not match, the call "passed" when the after value was the expected one. This however can lead to race conditions, duplicate code excutions and other things. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #47685 from nextcloud/fix/move-apihelper-to-oc-namespaceCôme Chilliet2024-09-125-114/+93
|\ \ | | | | | | fix: Move OC_API into \OC\ApiHelper in standard namespace
| * | chore: Adapt tests to OC_API refactoringCôme Chilliet2024-09-095-114/+93
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | fix: Add whiteboard to education and public sector bundleJulius Knorr2024-09-121-0/+1
| | | | | | | | | | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* | | fix(RichObjectStrings/Validator): Validate key value types of rich object ↵provokateurin2024-09-101-0/+23
| |/ |/| | | | | | | | | parameters Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix(NavigationManager): Skip invalid default navigation entriesprovokateurin2024-09-091-0/+57
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | refactor(AppManager): Deprecated default apps handlingprovokateurin2024-09-091-153/+0
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | feat(NavigationManager): Add default entries handlingprovokateurin2024-09-091-1/+168
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files): Check if the target path is a descendant of the shared folder pathGit'Fellow2024-09-051-1/+9
| | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: fix tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: add tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests
* chore: adjust code to adhere to coding standardAnna Larch2024-09-052-2/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #47417 from nextcloud/fix/files/create-mountpoint-parentsKate2024-09-041-0/+31
|\
| * fix(files): Create non-existent parents of mountpointsprovokateurin2024-08-221-0/+31
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix: share manager tests translation stringJohn Molakvoæ2024-09-041-1/+1
| | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* | 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>