aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
Commit message (Collapse)AuthorAgeFilesLines
* Add a built-in profiler inside NextcloudCarl Schwan2022-04-041-6/+12
| | | | | | The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Adapted Server to logger migration in constructorsCôme Chilliet2022-03-241-17/+25
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #31235 from nextcloud/techdebt/noid/extract-request-idJoas Schilling2022-03-221-3/+12
|\ | | | | 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-231-3/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix unknown Talk broker interfaceChristoph Wurst2022-03-151-0/+4
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | move user mountpoint setup to setupmanagerRobin Appelman2022-03-041-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | move teardown logic to SetupManagerRobin Appelman2022-03-041-1/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31266 from nextcloud/root-setup-mountproviderRobin Appelman2022-03-041-0/+2
|\ \ | | | | | | move root mount setup to mountproviders
| * | move root mount setup to mountprovidersRobin Appelman2022-02-241-0/+2
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add event logging for db and redis connectionJulius Härtl2022-02-281-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Diagnostics event logging to Nextcloud logJulius Härtl2022-02-281-6/+1
|/ | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Add config samples Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #30016 from ↵Joas Schilling2021-12-021-4/+4
|\ | | | | | | | | nextcloud/techdebt/noid/remove-default-token-provider Remove default token which is deprecated since Nextcloud 13
| * Remove default token which is deprecated since Nextcloud 13Joas Schilling2021-12-011-4/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #30028 from nextcloud/bugfix/noid/fix-log_queryJoas Schilling2021-12-021-1/+10
|\ \ | | | | | | Fix log_query config flag
| * | Fix log_query config flagJoas Schilling2021-12-011-1/+10
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Allow to log DB, redis and LDAP requests into filesJoas Schilling2021-12-011-1/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move common logic to share managerJoas Schilling2021-11-091-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to inject the trusted domain helper by public interfaceJoas Schilling2021-11-031-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move preview provider registration to bootstrapRoeland Jago Douma2021-10-211-1/+4
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #28728 from nextcloud/add-database-backend-limiterLukas Reschke2021-09-131-4/+14
|\ | | | | Add database ratelimiting backend
| * Adjust logic to store period instead of current timestampLukas Reschke2021-09-061-1/+1
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * Add database ratelimiting backendLukas Reschke2021-09-061-4/+14
| | | | | | | | | | | | | | In case no distributed memory cache is specified this adds a database backend for ratelimit purposes. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | implement verification for additional mailsArthur Schiwon2021-09-091-0/+4
|/ | | | | | | | | | | | - mails added by (sub)admins are automatically verified - provisioning_api controller as verification endpoint - IAccountProperty gets a locallyVerified property - IPropertyCollection gets a method to fetch an IAccountProperty by value - an remove equivalent was already present - AccountManager always initiates mail verification on update if necessary - add core success template for arbitrary title and message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow to get a local cloud id without going through the contacts managerJulius Härtl2021-07-141-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* ensure that factoryClass exisits before instantiationArthur Schiwon2021-06-301-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* allow excluding groups from creating link sharesRobin Appelman2021-05-121-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix unit testsJoas Schilling2021-04-271-4/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve networking checksLukas Reschke2021-04-061-0/+19
| | | | | | Whilst we currently state that SSRF is generally outside of our threat model, this is something where we should invest to improve this. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* make ILDAPProviderFactory usable when there is no ldap setupRobin Appelman2021-03-311-3/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add known user check in avatar when v2-private scopeVincent Petry2021-03-261-1/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add new v2-private account scopeVincent Petry2021-03-261-1/+3
| | | | | | | | | | Added new v2-private account manager scope that restricts the scope further by excluding public link access. Avatars with v2-private account scope are now showing the guest avatar instead of the real avatar. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* files: Create files from template APIJulius Härtl2021-01-281-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Compare and store the login name via the eventJoas Schilling2021-01-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup the constructorJoas Schilling2021-01-181-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24319 from ↵Christoph Wurst2020-11-261-12/+4
|\ | | | | | | | | nextcloud/techdebt/noid/streamline-user-creation-and-deletion-events Streamline user creation and deletion events
| * Streamline user creation and deletion eventsMorris Jobke2020-11-231-12/+4
| | | | | | | | | | | | CreateUserEvent was the only one that didn't matched the naming scheme of BeforePASTTENSEEvent and PASTTENSEEvent. The event wasn't used at all so this just removes it again as there is BeforeUserCreatedEvent that is also available since 18. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | set the display name of federated sharees from addressbookArthur Schiwon2020-11-241-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #24312 from nextcloud/bugfix/noid/fix-router-aliasRoeland Jago Douma2020-11-241-1/+3
|\ \ | | | | | | Add proper alias for internal router class
| * | Add proper alias for internal router classJulius Härtl2020-11-241-1/+3
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / Fix typo in @deprecated PHPDoc tagMorris Jobke2020-11-241-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow View to be used via DIMorris Jobke2020-11-211-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Auto-wire as much as possible in the encryption appMorris Jobke2020-11-201-4/+10
| | | | | | Also cleans up only non-classname services in the server container Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove old OC_Hook for OC_Group eventsMorris Jobke2020-11-101-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Those mappings exist and we will remove the first ones (labeled as `old`): old: `\OC_Hook::listen('OC_Group', 'pre_createGroup', array('run' => true, 'gid' => $gid));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'preCreate', function ($gid) { ... });` since NC 17 (#18350): `OCP\Group\Events\BeforeGroupCreatedEvent` old: `\OC_Hook::emit('OC_User', 'post_createGroup', array('gid' => $gid->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'postCreate', function (\OC\Group\Group $gid) { ... });` since NC 17 (#18350): `OCP\Group\Events\GroupCreatedEvent` old: `\OC_Hook::emit('OC_Group', 'pre_deleteGroup', array('run' => true, 'gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'preDelete', function (\OC\Group\Group $group) { ... });` since NC 17 (#18350): `OCP\Group\Events\BeforeGroupDeletedEvent` old: `\OC_Hook::emit('OC_User', 'post_deleteGroup', array('gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'postDelete', function (\OC\Group\Group $group) { ... });` since NC 17 (#18350): `OCP\Group\Events\GroupDeletedEvent` old: `\OC_Hook::emit('OC_Group', 'pre_addToGroup', array('run' => true, 'uid' => $user->getUID(), 'gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'preAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { ... });` since NC 17 (#18350): `OCP\Group\Events\BeforeUserAddedEvent` old: `\OC_Hook::emit('OC_Group', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { ... });` since NC 17 (#18350): `OCP\Group\Events\UserAddedEvent` Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix: also remove use statement of UserCreatedEventTobias Assmann2020-11-051-1/+0
| | | | Signed-off-by: Tobias Assmann <tobias.assmann@ecsec.de>
* 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>