summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
* Harden bootstrap context registrations when apps are missingChristoph Wurst2021-06-251-11/+51
| | | | | | | | | | | It's not expected that an app would be unavailable when the app container is created but when services are registered, but Sentry tells me on Nextcloud 21 there is an edge case where this can happen. Therefore this patch hardens the code a bit to log a meaningful error message and skipping the next code instead of logging a php notice for the undefined index and an exception for calling a method on null. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move DateTime::RFC2822 to DateTimeInterface::2822Christoph Wurst2021-06-231-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0455-111/+69
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Propagate throttling on OCS responseLukas Reschke2021-06-011-0/+5
| | | | | | The BaseResponse converter did not take over any throttling state from the DataResponse. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Remove unused constantsLukas Reschke2021-05-251-13/+0
| | | | | | | | No calls in all of GitHub as per https://sourcegraph.com/search?q=USER_AGENT_OWNCLOUD_&patternType=literal Deprecation has also been years ago. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix log entry readabilityJoas Schilling2021-05-211-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix error when using CORS with no auth credentialskorelstar2021-05-181-5/+4
|
* Fix unauthorized OCS status in provisioningJoas Schilling2021-05-122-3/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't break OCC if an app is breaking in it's Application classJoas Schilling2021-05-051-13/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #26591 from nextcloud/techdebt/noid/less-iloggerChristoph Wurst2021-04-274-45/+34
|\ | | | | Less ILogger
| * Fix unit testsJoas Schilling2021-04-272-6/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Less ILoggerJoas Schilling2021-04-273-39/+29
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix ratelimit templateJoas Schilling2021-04-271-14/+7
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move 2FA registration to IBootstrapRoeland Jago Douma2021-04-201-1/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow registering NotifierServices trough IBootstrapRoeland Jago Douma2021-04-161-0/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump psr/container from 1.0.0 to 1.1.1Christoph Wurst2021-03-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move initialstate bootstrap to proper types classesRoeland Jago Douma2021-03-091-6/+4
| | | | | | For more type safety Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #25917 from nextcloud/techdept/kill_deprecated/ocp_apiRoeland Jago Douma2021-03-033-9/+8
|\ | | | | Remove deprecated \OCP\API
| * Remove deprecated \OCP\APIRoeland Jago Douma2021-03-033-9/+8
| | | | | | | | | | | | | | | | Time to remove this forgood now. Remaining constant moved over The world is a tiny bit better Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix types in the Group ManagerRoeland Jago Douma2021-03-031-1/+3
|/ | | | | | | | | Psalm found an issue. However the issue found was because of lying docblocks. Fixed those and did some typing to make it all better. For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Register service aliases und parameters just onceChristoph Wurst2021-02-241-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-185-7/+7
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix remaining #25359Roeland Jago Douma2021-02-101-4/+1
| | | | | | | | | As a wise man once said: "I like PRs that pass tests before merging" C. Wurst, Feb 9th 2021 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Type the service registrationChristoph Wurst2021-02-107-101/+438
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* forward query exception when fallback construction failsRobin Appelman2021-02-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* forward original query exception when querying by name failsRobin Appelman2021-02-081-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move TemplateProvider registration to boot context and make template type ↵Julius Härtl2021-01-281-1/+22
| | | | | | registration lazy Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-112-3/+3
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-7/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-1/+1
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-1/+1
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Merge pull request #24730 from J0WI/fix-trusted-ipv6Julius Härtl2020-12-211-1/+1
|\ \ | | | | | | Fix IPv6 localhost regex
| * | Fix IPv6 localhost regexJ0WI2020-12-161-1/+1
| | | | | | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | | Merge pull request #24702 from nextcloud/enhancement/well-known-handler-apiChristoph Wurst2020-12-181-0/+24
|\ \ \ | | | | | | | | Add well known handlers API
| * | | Add well known handlers APIChristoph Wurst2020-12-161-0/+24
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Update all license headers for Nextcloud 21Christoph Wurst2020-12-167-7/+7
| |/ / |/| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Make $vars and $secureRandom required.Daniel Kesselberg2020-12-101-2/+2
|/ / | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Fix reverse registration and missing comments tabChristoph Wurst2020-11-241-6/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #24164 from nextcloud/fix/lazy-app-registrationMorris Jobke2020-11-192-13/+21
|\ \ | | | | | | Allow lazy app registration
| * | Allow lazy app registrationChristoph Wurst2020-11-182-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | During app installation we run migration steps. Those steps may use services the app registers or classes from composer. Hence we have to make sure the app runs through the registration. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | missing levelMaxence Lange2020-11-181-0/+1
|/ / | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Remove some IRouter methodsRoeland Jago Douma2020-11-171-4/+4
| | | | | | | | | | | | | | | | | | This is not the end. IRouter needs to burn. But it is a start. 🎵 we didn't start the fire 🎵 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | ReflectionParamter::getClass is deprecatedRoeland Jago Douma2020-11-111-6/+6
| | | | | | | | | | | | | | | | In php8 this starts throwing warnings. And since we use it quite often we flood the log. This moves it to getType which does the same. Only non deprecated now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove the cookie paths for php<7.3Christoph Wurst2020-11-061-12/+8
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Cleanup route registration logicRoeland Jago Douma2020-11-031-0/+269
| | | | | | | | | | | | | | | | This was a bunch of cylic things being called. This is an attempt to clean this all up. If an app provides an array of routes. We just parse them and hand them back. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix type errors detected by PsalmChristoph Wurst2020-10-141-2/+7
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix typo 'shared'Robin Windey2020-10-121-1/+1
| |
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-058-13/+13
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #21821 from nextcloud/enh/bootstrap/initial_stateRoeland Jago Douma2020-10-041-0/+24
|\ \ | | | | | | Bootstrap: add initial state registration