aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
Commit message (Collapse)AuthorAgeFilesLines
* Sort app scripts topologically by its dependenciesJonas Meurer2021-12-291-29/+20
| | | | | | | | | | | Implement a proper topological sorting algorithm. Based on the implementation by https://github.com/marcj/topsort.php Logs an error in case a circular dependency is detected. Fixes: #30278 Signed-off-by: Jonas Meurer <jonas@freesources.org>
* Further improve addScript logic, migrate to uksort()Jonas Meurer2021-12-201-56/+25
| | | | | | | Instead of the logic with `first` and `last`, store dependencies in an own array and sort the scripts topologically by its dependencies later. Signed-off-by: Jonas Meurer <jonas@freesources.org>
* Sort app scripts by dependencies (Fixes: #30278)Jonas Meurer2021-12-201-4/+28
| | | | Signed-off-by: Jonas Meurer <jonas@freesources.org>
* Merge pull request #30130 from nextcloud/fix/config_is_read_onlyChristoph Wurst2021-12-171-0/+2
|\ | | | | Don't write to config file if `config_is_read_only` is set
| * Don't write to config file if `config_is_read_only` is setJonas Meurer2021-12-131-0/+2
| | | | | | | | | | | | | | | | Also don't write to cache in this case to prevent cache and config file being out of sync. Fixes: #29901 Signed-off-by: Jonas Meurer <jonas@freesources.org>
* | Fix LDAP related docblocks typesCôme Chilliet2021-12-161-2/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Deprecate entity slugsChristoph Wurst2021-12-141-0/+1
|/ | | | | | | They are only used a single time in the whole Nextcloud Github organization. We can inline the code there and slim down the public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Convert strict_search to wildcard property and add psalm docsJoas Schilling2021-12-082-3/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only limit search in the system address bookJoas Schilling2021-12-081-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only wildcard search if enumeration is allowedJoas Schilling2021-12-082-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix typing problems in OC_ImageCôme Chilliet2021-12-061-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Adapt testsJohn Molakvoæ (skjnldsv)2021-12-021-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow scripts prioritization based on other appsJohn Molakvoæ (skjnldsv)2021-12-021-4/+78
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* code checker fixes for instanceOfStorageRobin Appelman2021-12-023-2/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* teach psalm about `Storage::instanceOfStorage`Robin Appelman2021-12-021-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #29830 from ↵Christoph Wurst2021-11-291-0/+3
|\ | | | | | | | | nextcloud/enhancement/wfe-operation-scope-psalm-type-hint Add Psalm specific scope type hint for the WFE operation
| * Add Psalm specific scope type hint for the WFE operationChristoph Wurst2021-11-221-0/+3
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | add method to shorten a string to given byte size to UtilsArthur Schiwon2021-11-261-0/+24
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Fix default value for $type in ↵Côme Chilliet2021-11-231-2/+2
| | | | | | | | | | | | | | | | | | OC\DB\QueryBuilder\ExpressionBuilder\ExpressionBuilder::literal This fixes PHP errors about passing null to PDO::quote second parameter. We may want to change IExpressionBuilder as well? Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix Iterator return typesCôme Chilliet2021-11-231-0/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-238-13/+10
|/ | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #29714 from nextcloud/bump-doctrine-dbalJohn Molakvoæ2021-11-152-4/+4
|\
| * Allow NULL as well for limit, not integer onlyJoas Schilling2021-11-152-4/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Document and type allowed values for calendar property searchesChristoph Wurst2021-11-111-0/+57
|/ | | | | | | | | For API users it looked like any properties could be searched. But it turned out to be a hand picked list of properties that we index and then use for the search. To prevent application errors where special props are not found, I suggest we document and type the allowed values. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move common logic to share managerJoas Schilling2021-11-091-0/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add IManager::getCalendarsForPrincipal APIChristoph Wurst2021-11-032-3/+12
| | | | | | | | The Calendar app needs to access calendars of a given principal in the back-end. The new calendar providers were not accessible for apps before this patch. Now they can access the ICalendar objects on demand. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #29479 from nextcloud/fix/images-php-8.0Côme Chilliet2021-11-021-1/+1
|\ | | | | Fix image handling for PHP 8.0
| * Fix resource usages in OC_ImageCôme Chilliet2021-10-281-1/+1
| | | | | | | | | | | | This makes sure using resource or GdImage (PHP>=8) behaves the same. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Register missing DAV app calendar providerChristoph Wurst2021-10-281-1/+2
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #29444 from ↵Joas Schilling2021-10-281-0/+56
|\ | | | | | | | | nextcloud/bugfix/noid/public-api-for-trusted-domain-helpers Add an OCP for trusted domain helper
| * Add an OCP for trusted domain helperJoas Schilling2021-10-281-0/+56
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #29453 from nextcloud/bugfix/noid/improve-wordingJohn Molakvoæ2021-10-271-2/+1
|\ \
| * | Improve wordingJoas Schilling2021-10-271-2/+1
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Use more explicit naming for profile link actionChristopher Ng2021-10-251-2/+2
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fair use of push notificationsJoas Schilling2021-10-232-1/+15
| | | | | | | | | We want to keep offering our push notification service for free, but large users overload our infrastructure. For this reason we have to rate-limit the use of push notifications. If you need this feature, consider setting up your own push server or using Nextcloud Enterprise. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge branch 'master' into imountpoint-ocp-storageJohn Molakvoæ2021-10-22586-1538/+2564
|\
| * Bump doctrine/dbal from 3.0.0 to 3.1.3Christoph Wurst2021-10-221-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Move preview provider registration to bootstrapRoeland Jago Douma2021-10-212-0/+16
| | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Change origin field to appIdJoas Schilling2021-10-202-7/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add appName to contactsmenu action APIJohn Molakvoæ2021-10-202-2/+16
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * Merge pull request #28541 from nextcloud/path-prefix-index2Robin Appelman2021-10-191-1/+14
| |\ | | | | | | add a prefix index to filecache.path, attempt 2
| | * disable path prefix index on postgresql for nowRobin Appelman2021-10-081-1/+14
| | | | | | | | | | | | | | | | | | | | | having the index work properly for the queries we need it for requires some additional options which dbal does not support at the momement. to prevent making it harder to add the correct index later on we don't create the index for now on postgresql Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Merge pull request #28751 from nextcloud/feat/28139/profile-pagePytal2021-10-185-0/+203
| |\ \
| | * | Profile backendChristopher Ng2021-10-194-0/+194
| | | | | | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
| | * | Add new account propertiesChristopher Ng2021-10-191-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New properties - Organisation - Role - Headline - Biography - Profile Enabled property - Fix errors with building default account properties - Fix L10N factory method `getLanguage` not public error - Update tests Signed-off-by: Christopher Ng <chrng8@gmail.com>
| * | | Add an API to set and rollback the user statusCarl Schwan2021-10-182-1/+22
| |/ / | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * | Merge pull request #29243 from nextcloud/bugfix/noid/ipropagator-sizedifferenceVincent Petry2021-10-181-1/+2
| |\ \ | | | | | | | | Add already used optional sizeDifference parameter to IPropagator
| | * | Add already used optional sizeDifference parameter to IPropagatorJulius Härtl2021-10-141-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Merge pull request #29188 from nextcloud/enhancement/public-write-apiDaniel2021-10-152-0/+74
| |\ \ \ | | | | | | | | | | Add calendar object creation API to OCP
| | * | | Add create method to extended calendar implementationAnna Larch2021-10-152-0/+74
| | |/ / | | | | | | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>