aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
* OCP\AppFramework\App strictRoeland Jago Douma2018-03-091-3/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8593 from eneiluj/masterMorris Jobke2018-03-081-28/+18
|\ | | | | Allow public page access to apps with group restrictions
| * Add testsRoeland Jago Douma2018-03-081-18/+8
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Make SecurityMiddleware strictRoeland Jago Douma2018-03-081-10/+9
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Do not throw AppNotEnabledException for app public pages - refs #6962, refs ↵Julien Veyssier2018-02-281-1/+2
| | | | | | | | | | | | | | | | #5309 It allows non-logged user to access public pages of applications restricted to a group Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* | Single quotesJoas Schilling2018-03-071-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Suppress phan errorJoas Schilling2018-03-071-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Try without autoloadingJoas Schilling2018-03-061-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Better debugging for "Your test case is not allowed to access the database."Joas Schilling2018-03-051-0/+6
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #8541 from nextcloud/translate-permission-error-pageMorris Jobke2018-02-263-4/+12
|\ | | | | Provide translated error message for permission error
| * Provide translated error message for permission errorMorris Jobke2018-02-263-4/+12
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix commentsRoeland Jago Douma2018-02-221-2/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix proper typesRoeland Jago Douma2018-02-221-2/+10
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make Request strictRoeland Jago Douma2018-02-221-53/+59
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8473 from nextcloud/strict_cmrRoeland Jago Douma2018-02-211-26/+28
|\ | | | | Strict OCP\AppFramework\Utility\IControllerMethodReflector
| * Don't try to match on falseRoeland Jago Douma2018-02-211-17/+19
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Strict OCP\AppFramework\Utility\IControllerMethodReflectorRoeland Jago Douma2018-02-211-10/+10
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix testsRoeland Jago Douma2018-02-212-4/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make the middlewareDispatcher strictRoeland Jago Douma2018-02-211-9/+10
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make AppFramework/Http/Dispatcher strictRoeland Jago Douma2018-02-211-8/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8336 from nextcloud/cleanup-unused-parameterRoeland Jago Douma2018-02-201-4/+0
|\ | | | | Cleanup unused parameter
| * Remove fromMailAddress from MailSettingsControllerMorris Jobke2018-02-131-4/+0
| | | | | | | | | | | | Was removed in https://github.com/nextcloud/server/pull/4379 (0a54d5a) and https://github.com/nextcloud/server/pull/4380 (bae64e8) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove unused import statementsMorris Jobke2018-02-142-2/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8062 from nextcloud/use-classMorris Jobke2018-01-292-6/+10
|\ | | | | Use ::class statement instead of string
| * Use ::class statement instead of stringMorris Jobke2018-01-292-6/+10
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Don't perform CSRF check on OCS routes with Bearer authRoeland Jago Douma2018-01-291-2/+8
|/ | | | | | Fixes #5694 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use $var[] = $a instead of array_push - 2x fasterMorris Jobke2018-01-252-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Request->getHeader() should always return a stringMorris Jobke2018-01-171-3/+2
| | | | | | | | 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>
* Remove deprecated core APIJoas Schilling2018-01-152-211/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #7838 from nextcloud/timefactory_strictRoeland Jago Douma2018-01-151-2/+2
|\ | | | | Make the ITimeFactory strict + return types
| * Make the ITimeFactory strict + return typesRoeland Jago Douma2018-01-141-2/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove deprecated functions from DI ContainerRoeland Jago Douma2018-01-131-2/+2
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move passwordconfirmation to its own midlewareRoeland Jago Douma2018-01-023-31/+96
| | | | | | Add tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* disable password confirmation with SSOBjoern Schiessle2018-01-022-3/+18
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Also check for empty content lenthRoeland Jago Douma2017-12-141-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-0616-4/+29
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6921 from nextcloud/appmanager-securitymiddlewareRoeland Jago Douma2017-10-242-3/+10
|\ | | | | Use proper DI for security middleware for app enabled check
| * Use proper DI for security middleware for app enabled checkMorris Jobke2017-10-242-3/+10
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Doc: Fix phpDoc issuesJulius Härtl2017-10-231-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Handle SameSiteCookie check for index.php in AppFramework MiddlewareRoeland Jago Douma2017-09-244-1/+153
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Rethrow the correct exception when there was an error in an app containerJoas Schilling2017-09-121-3/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* extend the identity proof manager to allow system wide key pairsBjoern Schiessle2017-08-101-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* If there is no content don't errorRoeland Jago Douma2017-08-091-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove explicit type hints for ControllerLukas Reschke2017-08-016-15/+15
| | | | | | This is public API and breaks the middlewares of existing apps. Since this also requires maintaining two different code paths for 12 and 13 I'm at the moment voting for reverting this change. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #5907 from nextcloud/add-metadata-to-throttle-callMorris Jobke2017-08-011-1/+1
|\ | | | | Add metadata to \OCP\AppFramework\Http\Response::throttle
| * Add metadata to \OCP\AppFramework\Http\Response::throttleLukas Reschke2017-07-271-1/+1
| | | | | | | | | | | | Fixes https://github.com/nextcloud/server/issues/5891 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #5877 from nextcloud/typehint_middlewareMorris Jobke2017-08-016-23/+26
|\ \ | | | | | | Prop argument type for Middleware
| * | Fix middleware implementations signaturesRoeland Jago Douma2017-07-316-23/+26
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>