aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
Commit message (Collapse)AuthorAgeFilesLines
...
* fix: no more translation from postCreateUser hook to UserCreatedEvent ↵Tobias Assmann2020-11-041-4/+0
| | | | | | anymore, as event is already emitted in user manager Signed-off-by: Tobias Assmann <tobias.assmann@ecsec.de>
* Improve CertificateManager to not be user context dependentMorris Jobke2020-11-031-37/+7
| | | | | | | | | * removes the ability for users to import their own certificates (for external storage) * reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions) The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use PSR logger in authenticationJoas Schilling2020-10-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Clean up the serverChristoph Wurst2020-10-091-227/+263
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprecate the named alias of IBusChristoph Wurst2020-10-071-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #23248 from nextcloud/techdebt/server-getters-query-getRoeland Jago Douma2020-10-071-102/+103
|\ | | | | Use the ContainerInterface::get inside the server container
| * Use the ContainerInterface::get inside the server containerChristoph Wurst2020-10-071-102/+103
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the correct l10n for activitiesRoeland Jago Douma2020-10-071-1/+1
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add occ command to set theming valuesJulius Härtl2020-09-241-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Specific version for @deprecated PHPDocMorris Jobke2020-09-161-91/+92
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't create a deprecation log in base.phpJoas Schilling2020-09-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add missing alias for OCP\Settings\IManager and deprecate the old oneJoas Schilling2020-09-041-10/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix app password updating out of boundsRoeland Jago Douma2020-09-031-0/+3
| | | | | | | | | | | | | | When your password changes out of bounds your Nextcloud tokens will become invalid. There is no real way around that. However we should make sure that if you successfully log in again your passwords are all updates * Added event listener to the PostLoggedInEvent so that we can act on it - Only if it is not a token login * Make sure that we actually reset the invalid state when we update a token. Else it keeps being marked invalid and thus not used. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #21288 from lmamane/masterRoeland Jago Douma2020-08-281-2/+2
|\ | | | | Return correct loginname in credentials
| * Return correct loginname in credentials,Lionel Elie Mamane2020-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | even when token is invalid or has no password. Returning the uid as loginname is wrong, and leads to problems when these differ. E.g. the getapppassword API was creating app token with the uid as loginname. In a scenario with external authentication (such as LDAP), these tokens were then invalidated next time their underlying password was checked, and systematically ceased to function. Co-authored-by: kesselb <mail@danielkesselberg.de> for: switch to consistent camelCase Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
* | Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #22331 from ↵Roeland Jago Douma2020-08-201-2/+2
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/dont-use-deprecated-inigetwrapper Don't use deprecated getIniWrapper() anymore
| * | Don't use deprecated getIniWrapper() anymoreJoas Schilling2020-08-201-2/+2
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #21529 from nextcloud/enh/encryption/improve_key_formatMorris Jobke2020-08-201-1/+1
|\ \ | |/ |/| New SSE key format
| * New SSE key formatRoeland Jago Douma2020-08-201-1/+1
| | | | | | | | | | | | | | * Encrypt the keys with the instance secret * Store them as json (so we can add other things if needed) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Properly inject IRouter into URLGenerator to properly encapsulate testsMorris Jobke2020-08-191-10/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix "misplaced variables" warning of Psalm in PHPDoc statementsMorris Jobke2020-08-171-1/+1
| | | | | | Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix more MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-9/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add @deprecated labels for server DI containter aliasesMorris Jobke2020-08-131-0/+64
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use registerDeprecatedAlias for non-namespaced aliasesMorris Jobke2020-08-131-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use autowiring where possible in server containerMorris Jobke2020-08-131-125/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #22117 from nextcloud/activity-settings-groupingMorris Jobke2020-08-111-1/+3
|\ | | | | allow grouping of activity settings
| * allow grouping of activity settingsRobin Appelman2020-08-051-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Distribute preview folders in appdata in multibucket setup to multiple bucketsMorris Jobke2020-08-061-0/+3
| | | | | | | | | | | | | | | | | | * introduces a new IRootMountProvider to register mount points inside the root storage * adds a AppdataPreviewObjectStoreStorage to handle the split between preview folders and bucket number Ref #22033 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Provide a PHP Api for UserStatusGeorg Ehrke2020-08-051-0/+2
|/ | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Merge pull request #21658 from nextcloud/trashbin-configurable-sizeMorris Jobke2020-07-211-1/+3
|\ | | | | allow admin to configure the max trashbin size
| * allow admin to configure the max trashbin sizeRobin Appelman2020-07-071-1/+3
| | | | | | | | | | | | | | | | this allows an admin to configure the max trashbin size instead of always relying on the users quota. The trashbin size can be configured using the `occ trash:size` command and can be set both globally and per-user Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Deprecate the server container gettersChristoph Wurst2020-07-161-0/+91
| | | | | | | | | | | | | | | | | | Service locators are an anti pattern. These getters just make it more appealing to do the wrong thing. If you want to locate a service the bad way, just use the `get` method on a container – it will do the same in also one line of code. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use PSR container interface and deprecate our own abstractionChristoph Wurst2020-07-161-7/+11
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Add new dashboard public APIJulius Härtl2020-07-151-0/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove old deprecated getAppFolderRoeland Jago Douma2020-07-061-17/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add lazy events for the Node APIRoeland Jago Douma2020-05-281-2/+15
| | | | | | | | | | | Right now if you want to get events via the Node API you have to have a real instance of the Root. Which in turns sets up the whole FS. We should make sure this is done lazy. Else enabling the preview generator for example makes you setup the whole FS on each and every authenticated call. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move over the IConfig for globalscaleRoeland Jago Douma2020-05-081-3/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move to subfolders for preview filesRoeland Jago Douma2020-04-191-2/+2
| | | | | | | | | | | Else the number of files can grow very large very quickly in the preview folder. Esp on large systems. This generates the md5 of the fileid. And then creates folders of the first 7 charts. In that folder is then a folder with the fileid. And inside there are the previews. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Provide the proper language to the mailerRoeland Jago Douma2020-04-161-1/+2
| | | | | | | Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Check all remotes for local accessJoas Schilling2020-04-141-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18200 from nextcloud/enhancement/psr-loggerChristoph Wurst2020-04-081-0/+4
|\ | | | | Add a PSR-3 logger adapter and make it injectable
| * Add a PSR-3 logger adapter and make it injectableChristoph Wurst2020-03-261-0/+4
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20241 from nextcloud/fix/license-headers-19Roeland Jago Douma2020-04-011-0/+1
|\ \ | | | | | | Update the license headers for Nextcloud 19
| * | Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | [POC] Event for failed login attemptsRoeland Jago Douma2020-03-311-0/+6
|/ / | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>