aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* add search parameter to autocomplete controllerArthur Schiwon2017-10-251-2/+7
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* AutoCompletion backendArthur Schiwon2017-10-223-23/+156
| | | | | | | | | | * 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-182-52/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix urlBjoern Schiessle2017-10-171-2/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #6602 from nextcloud/s3-multipart-uploadRobin Appelman2017-10-111-4/+17
|\ | | | | Add multipart upload for s3
| * Add tests for multipart uploadRobin Appelman2017-09-211-4/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | App management: add update sectionJulius Härtl2017-10-101-0/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow multiple settings and sections per appJoas Schilling2017-10-052-2/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #6328 from nextcloud/split-sharees-api-logicblizzz2017-10-046-0/+2059
|\ \ | | | | | | Splits off the logic from sharees endpoint thus making it available from within Nc/via PHP.
| * | add tests for Lookup PluginArthur Schiwon2017-09-263-2/+180
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | move splitUserRemote unit testsArthur Schiwon2017-09-261-0/+75
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | split off former searchSharee unit testArthur Schiwon2017-09-261-0/+219
| | | | | | | | | | | | | | | | | | also moves registering default plugins to Server for proper unit testing Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | split off getEmail testsArthur Schiwon2017-09-261-0/+337
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | split off getRemote unit testsArthur Schiwon2017-09-261-0/+314
| | | | | | | | | | | | | | | | | | adds two small fixes → they actually work \o/ Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | split off getGroups unit testsArthur Schiwon2017-09-261-0/+491
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | split off getUsers unit testsArthur Schiwon2017-09-261-0/+445
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | dont run invalid path repair step when upgrading from 11.0.5.2 and laterRobin Appelman2017-10-031-0/+30
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix bigint handling on postgresJoas Schilling2017-09-291-0/+74
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #6544 from nextcloud/fix/duplicate-session-tokenMorris Jobke2017-09-251-0/+8
|\ \ | | | | | | Fix duplicate session token after remembered login
| * | Fix duplicate session token after remembered loginChristoph Wurst2017-09-201-0/+8
| |/ | | | | | | | | | | | | | | | | On a remembered login session, we create a new session token in the database with the values of the old one. As we actually don't need the old session token anymore, we can delete it right away. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Handle SameSiteCookie check for index.php in AppFramework MiddlewareRoeland Jago Douma2017-09-242-2/+145
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #6605 from nextcloud/oc_ocs_response_is_depMorris Jobke2017-09-211-4/+4
|\ \ | | | | | | OC_OCS_Response is deprecated
| * | OC_OCS_Response is deprecatedRoeland Jago Douma2017-09-211-4/+4
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Fix testsRoeland Jago Douma2017-09-211-0/+9
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #5462 from nextcloud/add-frameancestor-supportLukas Reschke2017-09-181-0/+41
|\ | | | | Add CSP frame-ancestors support
| * Add CSP frame-ancestors supportThomas Citharel2017-09-151-0/+41
| | | | | | | | | | | | Didn't set the @since annotation yet. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Add filter for `shareapi_allow_share_dialog_user_enumeration`Lukas Reschke2017-09-151-32/+125
| | | | | | | | | | | | | | | | This adjusts the contacts menu to also support searching by email address which is relevant in scenarios where no UID is known such as LDAP, etc. Furthermore, if `shareapi_allow_share_dialog_user_enumeration` is disabled only results are shown that match the full user ID or email address. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Add testsTobia De Koninck2017-09-151-0/+129
| | | | | | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* | Fix testsTobia De Koninck2017-09-151-1/+19
|/ | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Fix AppPassword 2FA authRoeland Jago Douma2017-09-121-1/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #6414 from nextcloud/share-notification-wrong-languageMorris Jobke2017-09-081-0/+11
|\ | | | | Use the language of the recipient for the share notification
| * Use the language of the recipient for the share notificationJoas Schilling2017-09-081-0/+11
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Improve text: 'you have now' -> 'you now have'Leon Klingele2017-09-089-15/+15
|/ | | | Signed-off-by: Leon Klingele <leon@struktur.de>
* Merge pull request #6247 from nextcloud/oauth-state-undefinedMorris Jobke2017-09-061-0/+12
|\ | | | | Fix undefined index oauthState
| * Fix testsMorris Jobke2017-09-061-0/+12
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6364 from nextcloud/fix_login_loopMorris Jobke2017-09-061-1/+5
|\ \ | |/ |/| Fix login with basic auth
| * Fix login with basic authRoeland Jago Douma2017-09-051-1/+5
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #6358 from nextcloud/fix-mixup-of-id-and-nameMorris Jobke2017-09-053-3/+7
|\ \ | |/ |/| Set the meta data before everything
| * Fix testsMorris Jobke2017-09-052-2/+6
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Fix unit testsJoas Schilling2017-09-041-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #6254 from nextcloud/async-bus-splitMorris Jobke2017-09-043-28/+82
|\ \ | | | | | | Allow configuring different command bus backends
| * | Add proper EOLMorris Jobke2017-09-041-1/+1
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | split async test bus for easier subclassingRobin Appelman2017-08-243-28/+82
| | |
* | | Fix broken testsMorris Jobke2017-09-041-1/+6
| |/ |/| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6296 from nextcloud/improve_2faRoeland Jago Douma2017-08-311-17/+189
|\ \ | | | | | | Improve 2FA
| * | Improve 2FARoeland Jago Douma2017-08-291-17/+189
| | | | | | | | | | | | | | | | | | | | | | | | * Store the auth state in the session so we don't have to query it every time. * Added some tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | 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-262-5/+15
|\ \ \ | |/ / |/| | Properly allow \OCP\Authentication\IApacheBackend to specify logout URL
| * | Inject \OCP\IURLGenerator to make tests workLukas Reschke2017-08-181-1/+11
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Properly allow \OCP\Authentication\IApacheBackend to specify logout URLLukas Reschke2017-08-182-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>