aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #34172 from audriga/add-scim-json-supportJoas Schilling2022-12-201-2/+3
|\ | | | | Add support for application/scim+json
| * Merge branch 'master' into add-scim-json-supportStanimir Bozhilov2022-12-196-16/+63
| |\ | | | | | | Signed-off-by: Stanimir Bozhilov <stanimir.bozhilov.1998@gmail.com>
| * | Move JSON content type regex to IRequest and make it a constStanimir Bozhilov2022-12-081-4/+1
| | |
| * | Fix the JSON content type regex to match all MIME typesStanimir Bozhilov2022-09-261-1/+1
| | | | | | | | | | | | Signed-off-by: Stanimir Bozhilov <stanimir@audriga.com>
| * | Type hint JSON content type regex and use preg_match lessStanimir Bozhilov2022-09-221-4/+4
| | | | | | | | | | | | Signed-off-by: Stanimir Bozhilov <stanimir@audriga.com>
| * | Use regex for all JSON-related content typesStanimir Bozhilov2022-09-211-6/+7
| | | | | | | | | | | | Signed-off-by: Stanimir Bozhilov <stanimir@audriga.com>
| * | Treat application/json and application/scim+json in same if-blockStanimir Bozhilov2022-09-211-11/+3
| | | | | | | | | | | | Signed-off-by: Stanimir Bozhilov <stanimir@audriga.com>
| * | Add support for application/scim+json content typeStanimir Bozhilov2022-09-201-0/+11
| | | | | | | | | | | | Signed-off-by: Stanimir Bozhilov <stanimir@audriga.com>
* | | Use strict typing in base.phpCôme Chilliet2022-12-191-17/+8
| |/ |/| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #35537 from nextcloud/fix/dependency-injection-errorVincent Petry2022-12-161-1/+1
|\ \ | | | | | | Improve dependency injection error message
| * | Improve dependency injection error messageCarl Schwan2022-12-011-1/+1
| | | | | | | | | | | | | | | | | | | | | Change from display the name of the parameter to the type of the parameter. This is that in most cases is usefull. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #35780 from ↵Vincent Petry2022-12-161-1/+1
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/http-dispatcher-double-parameter-cast Fix missing cast of double controller parameters
| * | | fix(app framework): Fix missing cast of double controller parametersChristoph Wurst2022-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | ``settype`` allows 'double' as alias of 'float'. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | check if params given to API are really an arrayArtur Neumann2022-12-151-2/+1
|/ / / | | | | | | | | | Signed-off-by: Artur Neumann <artur@jankaritech.com>
* | | Move to str_starts_withJulius Härtl2022-12-071-3/+3
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Skip querying the app container for server namespaceJulius Härtl2022-12-071-0/+6
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Avoid container dance for appNameJulius Härtl2022-12-071-4/+9
| | | | | | | | | | | | | | | | | | | | | Sicne the appName is always passed for the DIContainer we can avoid using the container query logic and instead store and use a property Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | use bruteforce protection on all methods wrapped by PublicShareMiddlewareJulien Veyssier2022-12-072-2/+23
|/ / | | | | | | | | | | if an invalid token is provided or when share password is wrong Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | Clean up and deprecate app container aliasesChristoph Wurst2022-11-021-6/+9
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Improve container return type annotationsJulius Härtl2022-10-141-0/+9
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow CSRF on CORS routesJonas Rittershofer2022-09-211-0/+4
|/ | | | | | Co-authored-by: Julius Härtl <jus@bitgrid.net> Co-authored-by: Andreas Brinner <andreas@everlanes.net> Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
* 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>