aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
* Move registration to IBootstrapJulius Härtl2022-08-311-0/+22
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Reopen sessions if we need to write to them instead of keeping them openJulius Härtl2022-08-171-2/+2
| | | | | | | Sessions are a locking operation until we write close them, so close them early and reopen later in case we want to write to them Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #32363 from nextcloud/cleanup/remove-long-deprecated-classesCarl Schwan2022-08-081-2/+0
|\ | | | | Remove OCP\App and OCP\BackgroundJob
| * Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-2/+0
| | | | | | | | | | | | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #33398 from nextcloud/enh/noid/sensitive-methods-appsVincent Petry2022-08-051-0/+23
|\ \ | | | | | | allow apps to specify methods carrying sensitive parameters
| * | allow apps to specify methods carrying sensitive parametersArthur Schiwon2022-07-281-0/+23
| | | | | | | | | | | | | | | | | | … in order to remove them from logging. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | 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>