aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fix(performance): Do not set up filesystem on every call"Joas Schilling2023-02-211-0/+72
|
* feat(directediting): Allow opening by file idJulius Härtl2023-02-201-0/+80
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not set up filesystem on every callAnna Larch2023-02-171-72/+0
| | | | | | Also remove old Oc_FileChunking logis that produced GC- collectable chunks Signed-off-by: Anna Larch <anna@nextcloud.com>
* Revert the token scope to not end up with storing the user used in the sessionJulius Härtl2023-02-171-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #36396 from nextcloud/fix/corsJulius Härtl2023-02-171-1/+35
|\
| * fix(CORS): CORS should only be bypassed on `PublicPage` if not logged in to ↵Ferdinand Thiessen2023-02-161-1/+35
| | | | | | | | | | | | prevent CSRF attack vectors Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* | Merge pull request #36735 from nextcloud/fix/32635/fix-vcf-contactsLouis2023-02-161-1/+1
|\ \ | | | | | | fix the contacts-menu vcf-contact avatars
| * | fix the contacts-menu vcf-contact avatarsSimon L2023-02-151-1/+1
| | | | | | | | | | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* | | Change X-Robots-Tag header from "none" to "noindex, nofollow"MichaIng2023-02-154-4/+4
|/ / | | | | | | | | | | | | | | | | | | While "none" is indeed equivalent to "noindex, nofollow" for Google, but seems to be not supported by Bing and probably other search engines. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name#other_metadata_names https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=de#comma-separated-list https://www.bing.com/webmasters/help/which-robots-metatags-does-bing-support-5198d240 Signed-off-by: MichaIng <micha@dietpi.com>
* | Merge pull request #36656 from nextcloud/route-instrumentationJulius Härtl2023-02-142-7/+57
|\ \
| * | DI for RouterRobin Appelman2023-02-132-7/+57
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #36643 from nextcloud/fs-setup-instrimuntionRobin Appelman2023-02-131-1/+2
|\ \ \ | | | | | | | | more filesystem setup performance instrumentation
| * | | more filesystem setup performance instrumentationRobin Appelman2023-02-101-1/+2
| |/ / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Port user menu to VueChristopher Ng2023-02-091-3/+3
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | | Fix unit testsJoas Schilling2023-02-091-47/+42
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #36566 from nextcloud/mount-find-by-numeric-idJulius Härtl2023-02-081-0/+3
|\ \ | |/ |/|
| * fix testsRobin Appelman2023-02-071-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #36417 from nextcloud/fix/psr-containerJoas Schilling2023-02-071-3/+24
|\ \ | | | | | | Make the container fully fulfill PSR container interface
| * | fix: Throw `NotFoundExceptionInterface` to fulfill PSR container interface ↵Ferdinand Thiessen2023-02-061-3/+24
| |/ | | | | | | | | | | if class not found Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* | Skip buggy tests for 32bits CICôme Chilliet2023-02-071-0/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Improve error output on failed Router testCôme Chilliet2023-02-071-1/+6
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add helper to cast to int|float, fix MemoryInfo on 32bitsCôme Chilliet2023-02-071-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix filesize return type error in ViewTestCôme Chilliet2023-02-071-4/+16
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Improve test failure output for RouterTest.phpCôme Chilliet2023-02-071-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add apcu and ffmpeg to have less skipped testsCôme Chilliet2023-02-076-0/+21
| | | | | | | | | | | | Also exclude test groups which rely on a service Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #36489 from ↵Joas Schilling2023-02-061-0/+1
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/brute-force-protection-password-reset Add bruteforce protection to password reset page
| * | fix(CI): Adjust expected resultJoas Schilling2023-02-061-0/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix(client-login-flow): Handle missing stateToken gracefullyChristoph Wurst2023-02-061-0/+6
| |/ |/| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove failing test that works with mocks only anywayJoas Schilling2023-02-021-41/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Migrate to Symfony MailerCôme Chilliet2023-02-022-258/+236
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* use php8.0 imagesMaxence Lange2023-01-311-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* tests(oci): Test where statement on longtext columnJulius Härtl2023-01-311-0/+18
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> test: try with just passing the type to eq which should also cast Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #35160 from nextcloud/artonge/feat/version_naming_backendLouis2023-01-301-1/+2
|\ | | | | Allow to name a version
| * Fix hookconnector testsLouis Chemineau2023-01-261-1/+2
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(tests): Fix method name in unit testsJoas Schilling2023-01-301-4/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | feat(app-framework): Add UseSession attribute to replace annotationChristoph Wurst2023-01-271-53/+100
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | feat(app-framework): Add support for global middlewaresChristoph Wurst2023-01-262-4/+36
|/ | | | | | | This allows apps to register middlewares that always register, not just for the app's own requests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* perf(app-framework): Make the app middleware registration lazyChristoph Wurst2023-01-252-18/+47
| | | | | | | | | Before this patch, app middlewares were registered on the dispatcher for every app loaded in a Nextcloud process. With the patch, only middlewares belonging to the same app of a dispatcher instance are loaded. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Port files sharing selectorChristopher Ng2023-01-241-4/+3
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix tests failures (number of calls differed with last rebase)Côme Chilliet2023-01-241-15/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix a bunch of deprecation in the phpunit for coreCarl Schwan2023-01-246-52/+51
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix broken user:setting command unit testJoas Schilling2023-01-231-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-20230-461/+238
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix integrity checkJoas Schilling2023-01-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update test file for mimetypesCôme Chilliet2023-01-201-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix gzip mimetype mappingCôme Chilliet2023-01-201-2/+2
| | | | | | PHP now detects it as application/gzip and not application/x-gzip anymore Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove workarounds specific to 7.4Côme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Disable unreliable acceptance testsJoas Schilling2023-01-191-398/+398
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(app framework)!: Inject services into controller methodsChristoph Wurst2023-01-182-30/+36
| | | | | | | | | | | | | | | Usually Nextcloud DI goes through constructor injection. This has the implication that each instance of a class builds the full DI tree. That is the injected services, their services, etc. Occasionally there is a service that is only needed for one controller method. Then the DI tree is build regardless if used or not. If services are injected into the method, we only build the DI tree if that method gets executed. This is also how Laravel allows injection. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix login loop if login CSRF fails and user is not logged inChristoph Wurst2023-01-181-10/+11
| | | | | | | | | | If CSRF fails but the user is logged in that they probably logged in in another tab. This is fine. We can just redirect. If CSRF fails and the user is also not logged in then something is fishy. E.g. because Nextcloud contantly regenrates the session and the CSRF token and the user is stuck in an endless login loop. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>