aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
* Support specifying IPv6 proxies in CIDR notationSimon Leiner2022-08-021-30/+3
| | | | | | | | | | Previously, it was not possible to use CIDR notation for IPv6 proxies in the trusted_proxies parameter of config.php [1]. This patch adds support for that. [1]: https://docs.nextcloud.com/server/24/admin_manual/configuration_server/reverse_proxy_configuration.html#defining-trusted-proxies Signed-off-by: Simon Leiner <simon@leiner.me>
* Fix typos in lib/private subdirectoryluz paz2022-07-273-4/+4
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* load widgets only of enabled appsArthur Schiwon2022-06-222-3/+3
| | | | | | | | | | | | | - per design, all enabled apps have their registration run - limitations, e.g. enabled by group, are not considered in that state, because we do not have a session (and might need apps?) - before instantiation of widget it has to be checked whether the providing app is actually enabled for the logged in user. - a public interface is being changed, but it is not meant to be implemented or used outside of the core handling. Therefore save to backport. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update core to PHP 7.4 standardCarl Schwan2022-05-201-11/+3
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Trying without the useCôme Chilliet2022-04-261-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use sabre function directly rather than duplicating itCôme Chilliet2022-04-261-11/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add a built-in profiler inside NextcloudCarl Schwan2022-04-042-7/+34
| | | | | | The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #31592 from nextcloud/fix/direct-arg-flow-v2Vincent Petry2022-03-291-0/+3
|\ | | | | Add direct arg to login flow
| * Add direct arg to login flowVincent Petry2022-03-281-0/+3
| | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-Authored-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #31235 from nextcloud/techdebt/noid/extract-request-idJoas Schilling2022-03-222-18/+59
|\ \ | |/ |/| Extract request id handling to dedicated class so it can be injected without DB dependency
| * Extract request id handling to dedicated class so it can be injected manuallyJoas Schilling2022-02-232-18/+59
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add event logging to app loadingJulius Härtl2022-02-281-0/+10
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Diagnostics event logging to Nextcloud logJulius Härtl2022-02-282-2/+13
|/ | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Add config samples Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow registration of migratorsChristopher Ng2022-02-111-0/+25
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Move calendar resource/room backend registration to IBootstrapChristoph Wurst2022-02-071-0/+52
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a Talk API for OCPChristoph Wurst2022-02-041-0/+35
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check style updateCarl Schwan2022-01-133-4/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Pass username prefill through unauthenticated request redirectsJulius Härtl2021-12-291-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-232-5/+8
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use more explicit naming for profile link actionChristopher Ng2021-10-251-8/+8
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Make the route name error more helpfulChristoph Wurst2021-10-222-2/+2
| | | | | | | | As a developer I have no clue what "Invalid route name" means. If the exception gives me a hint I might find it easier to figure out why my route triggers this error. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move preview provider registration to bootstrapRoeland Jago Douma2021-10-212-0/+69
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Profile backendChristopher Ng2021-10-192-10/+39
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add Public Calendar ProviderAnna Larch2021-10-141-0/+22
| | | | | Signed-off-by: Anna Larch <anna@nextcloud.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #28915 from nextcloud/fix/improve-bug-reportingChristoph Wurst2021-09-301-1/+1
|\ | | | | Improve syntax error reporting
| * Improve syntax error reportingCarl Schwan2021-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases the error information is not enough to debug it. Before: syntax error, unexpected '<<' (T_SL) /var/www/html/lib/private/AppFramework/Http/Dispatcher.php 158 After: syntax error, unexpected '<<' (T_SL) in file '/var/www/html/apps/groupfolders/lib/Mount/GroupFolderStorage.php' line 88 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php 158 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add admin privilege delegation for admin settingsCarl Schwan2021-09-292-6/+46
|/ | | | | | | This makes it possible for selected groups to access some settings pages. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Introduce ISecureRandom::CHAR_ALPHANUMERICJ0WI2021-07-081-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Migrate HintException to OCPGary Kim2021-06-301-1/+2
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* 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>