aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federation/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix many issues with the testsCarl Schwan2022-06-282-2/+5
| | | | | | | - Return type were not correct - willReturn and with confusion Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup CardDav SyncServiceCarl Schwan2022-06-241-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Summer cleanup of the federation appCarl Schwan2022-06-2411-412/+185
| | | | | | | | | | - Use IEventDispatcher instead of deprecated symfony dispatcher - Use LoggerInterface where possible - Use php 7.4 properties - Add type hinting where possible - Move federation hooks to a seperate listener Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add support for Delegation Settings for more appsCarl Schwan2021-10-152-6/+28
| | | | | | | | | * This adds support for the sharing, groupware, theming and user_ldap app * This adds some code who disapeared during a rebase in the initial delegation PR (provisioning_api) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate HintException to OCPGary Kim2021-06-304-4/+4
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0415-21/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* More cleaning after auto-add removalJoas Schilling2021-04-273-70/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* No longer add trusted servers on federated share creationRoeland Jago Douma2021-04-263-73/+0
| | | | | | | | It was disabled by default for ages. And often resulted in unwanted behavior. If admins want trusted servers they just have to do it manually. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix a few RedundantCastRoeland Jago Douma2021-03-011-1/+1
| | | | | | | Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-121-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-1/+1
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersChristoph Wurst2020-12-302-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Drop all dead packagesChristoph Wurst2020-12-232-14/+2
| | | | | | | | Apparently we have plenty of leftover of previous sub-dependencies. Composer automatically dumps those with any future dependency update, so I'm dropping them in an atomic step. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add missing parent::__construct() calls to JobsJoas Schilling2020-12-142-14/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use proper OCP\BackgroundJobs\JobRoeland Jago Douma2020-11-252-8/+6
| | | | | | And typehunt the IJobList Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure the function signatures of the backgroundjob matchRoeland Jago Douma2020-10-262-2/+2
| | | | | | Else PHP says no Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-3/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix PSR-4 compatible namespaceJoas Schilling2020-07-272-0/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move federated_share_added into a typed eventMorris Jobke2020-07-233-40/+131
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move federation to migrationsJoas Schilling2020-07-061-0/+83
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also always return in app commandsJoas Schilling2020-06-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-297-1/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1012-21/+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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0514-16/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-2211-10/+6
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* A failing federation sync job is not an errorRoeland Jago Douma2018-08-061-1/+1
| | | | | | This is an INFO warning at best. Else it spams the logs continiously. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move log constants to ILoggerArthur Schiwon2018-04-264-5/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* improve error reporting and move format parameter to the optionsBjoern Schiessle2018-04-253-32/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove unused import statementsMorris Jobke2018-02-143-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-292-2/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-234-5/+24
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Catch the errors related to untrusted self signed certificates for federationRoeland Jago Douma2017-12-112-2/+12
| | | | | | * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Actually set the status so we don't cause another exceptionRoeland Jago Douma2017-11-292-0/+2
| | | | | | * And add tests so I don't mess up again Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not log Exception if a connection error occuredRoeland Jago Douma2017-11-292-0/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-0611-1/+20
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #5923 from nextcloud/expire-federation-jobsRoeland Jago Douma2017-08-0211-162/+204
|\ | | | | Expire federation jobs
| * Close all the cursorsJoas Schilling2017-08-021-12/+26
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Use automatic injection whenever possibleJoas Schilling2017-08-026-80/+38
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Use ITimeFactoryRoeland Jago Douma2017-08-015-32/+50
| | | | | | | | | | | | | | * Inject the timefacotry so we can mock it properly in the tests. * Extended unit tests to cover the new paths Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * we don't need to remove the job manually here, even if we ask once more the ↵Bjoern Schiessle2017-08-011-9/+0
| | | | | | | | | | | | other server will decline and the background job will be removed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * cleanup constructorsBjoern Schiessle2017-08-012-53/+33
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * expire requestSharedSecret job after 30 daysBjoern Schiessle2017-08-012-3/+45
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * expire getShareadSecret job after 30 daysBjoern Schiessle2017-08-012-2/+42
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>