summaryrefslogtreecommitdiffstats
path: root/tests/Core
Commit message (Collapse)AuthorAgeFilesLines
* Fix app navigation controller to return an arrayJulius Härtl2018-07-251-2/+2
| | | | | | This is required to not break compatibility with existing consumers of that endpoint like the apps management or the client Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adds disabled user unit testsMichael Weimann2018-07-211-3/+47
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Adds an info if the maintenance mode is already enabled/disabled.Michael Weimann2018-07-011-0/+147
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Merge pull request #9632 from nextcloud/enhancement/stateful-2fa-providersMorris Jobke2018-06-252-36/+39
|\ | | | | Stateful 2fa providers
| * Make 2FA providers statefulChristoph Wurst2018-06-202-36/+39
| | | | | | | | | | | | | | | | | | | | | | This adds persistence to the Nextcloud server 2FA logic so that the server knows which 2FA providers are enabled for a specific user at any time, even when the provider is not available. The `IStatefulProvider` interface was added as tagging interface for providers that are compatible with this new API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | prefill userid for login after password resetRobin Appelman2018-06-211-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix testsRoeland Jago Douma2018-05-142-2/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Set the default log rotate size to 100 MBMorris Jobke2018-04-111-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsRoeland Jago Douma2018-04-061-17/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add Cache-control: immutableRoeland Jago Douma2018-03-192-12/+12
| | | | | | | | Cache generated CSS forever! Also cache combined JS forever Fix tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add CSRF token controller to retrieve the current CSRF tokenChristoph Wurst2018-03-081-0/+71
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testsJulius Härtl2018-03-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Replace logout href to avoid new etag on every requestJulius Härtl2018-03-061-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add ETag to NavigationControllerJulius Härtl2018-03-051-0/+31
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* update unit testsBjoern Schiessle2018-03-021-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #8336 from nextcloud/cleanup-unused-parameterRoeland Jago Douma2018-02-201-7/+1
|\ | | | | Cleanup unused parameter
| * Remove config from AutoCompleteControllerMorris Jobke2018-02-131-7/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Also rewrite icon urlJulius Härtl2018-02-121-4/+19
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Move to OCS endpointJulius Härtl2018-02-121-5/+5
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow requesting absolute URLsJulius Härtl2018-02-121-6/+43
| | | | | | | | | | | | They might be useful when requesting the navigation from the clients Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add tests for NavigationControllerJulius Härtl2018-02-121-0/+77
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Request->getHeader() should always return a stringMorris Jobke2018-01-171-0/+13
| | | | | | | | PHPDoc (of the public API) says that this method returns string but it also returns null, which is not allowed in some method calls. This fixes that behaviour and returns an empty string and fixes all code paths that explicitly checked for null to be still compliant. Found while enabling the strict_typing for lib/private for the PHP7+ migration. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsRoeland Jago Douma2018-01-151-1/+18
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add unit testJoas Schilling2018-01-151-0/+123
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix testsRoeland Jago Douma2018-01-131-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Hide stay logged in checkbox when flow authentication is usedJulius Härtl2017-12-281-0/+33
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsRoeland Jago Douma2017-12-181-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7324 from nextcloud/no-sorters-no-instancesRoeland Jago Douma2017-12-111-41/+99
|\ | | | | don't create sorter instances when none was requested
| * don't create sorter instances when none was requestedArthur Schiwon2017-11-281-41/+99
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #6876 from nextcloud/always_img_avatarMorris Jobke2017-12-081-6/+2
|\ \ | | | | | | Always generate avatar
| * | Fix testsRoeland Jago Douma2017-11-291-6/+2
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | fix testsBjoern Schiessle2017-12-081-8/+0
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Fix flowMario Danic2017-11-091-2/+18
|/ | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* Theming: theme flow redirection pageJulius Härtl2017-11-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge branch 'master' into autocomplete-guiArthur Schiwon2017-11-014-14/+17
|\
| * Use ::class in test mocksMorris Jobke2017-10-244-14/+17
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | meanwhile we can have exact matches. also show those.Arthur Schiwon2017-10-311-0/+29
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | add search parameter to autocomplete controllerArthur Schiwon2017-10-251-2/+7
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | AutoCompletion backendArthur Schiwon2017-10-221-0/+84
|/ | | | | | | | | | * introduce a Controller for requests * introduce result sorting mechanism * extend Comments to retrieve commentors (actors) in a tree * add commenters sorter * add share recipients sorter Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Set the data from the templateJoas Schilling2017-10-181-36/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix testsMorris Jobke2017-09-061-0/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix broken testsMorris Jobke2017-09-041-1/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Return the user id in case of an errorJoas Schilling2017-08-291-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #6177 from nextcloud/properly-add-slo-urlMorris Jobke2017-08-261-4/+4
|\ | | | | Properly allow \OCP\Authentication\IApacheBackend to specify logout URL
| * Properly allow \OCP\Authentication\IApacheBackend to specify logout URLLukas Reschke2017-08-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any `\OCP\Authentication\IApacheBackend` previously had to implement `getLogoutAttribute` which returns a string. This string is directly injected into the logout `<a>` tag, so returning something like `href="foo"` would result in `<a href="foo">`. This is rather error prone and also in Nextcloud 12 broken as the logout entry has been moved with 054e161eb5f4a5c5c13ee322ae8e93ce66f01b13 inside the navigation manager where one cannot simply inject attributes. Thus this feature is broken in Nextcloud 12 which effectively leads to the bug described at nextcloud/user_saml#112, people cannot logout anymore when using SAML using SLO. Basically in case of SAML you have a SLO url which redirects you to the IdP and properly logs you out there as well. Instead of monkey patching the Navigation manager I decided to instead change `\OCP\Authentication\IApacheBackend` to use `\OCP\Authentication\IApacheBackend::getLogoutUrl` instead where it can return a string with the appropriate logout URL. Since this functionality is only prominently used in the SAML plugin. Any custom app would need a small change but I'm not aware of any and there's simply no way to fix this properly otherwise. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | No password reset for disabled usersJoas Schilling2017-08-181-0/+29
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix LostControllerTestRoeland Jago Douma2017-08-091-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix LoginControllerRoeland Jago Douma2017-08-091-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #5907 from nextcloud/add-metadata-to-throttle-callMorris Jobke2017-08-011-2/+2
|\ | | | | Add metadata to \OCP\AppFramework\Http\Response::throttle
| * Add metadata to \OCP\AppFramework\Http\Response::throttleLukas Reschke2017-07-271-2/+2
| | | | | | | | | | | | Fixes https://github.com/nextcloud/server/issues/5891 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>