summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #25138 from gouttegd/fix25137Joas Schilling2021-01-151-2/+2
|\ | | | | Fix comparison of PHP versions
| * Fix comparison of PHP versionsDamien Goutte-Gattat2021-01-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | Use the builtin function `version_compare` to check an app's compatibility with the available PHP version, instead of reusing the `OC\App\CompareVersion::isCompatible` method which is intended to compare Nextcloud versions. PHP version strings do not always necessarily follow the simple Major.Minor.Patch format used by Nextcloud and therefore cannot be properly compared by that method. Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
* | Merge pull request #25141 from nextcloud/bugfix/noid/add-a-hint-about-priorityMorris Jobke2021-01-152-3/+6
|\ \ | |/ |/| Add a hint about the direction of priority
| * Add a hint about the direction of priorityJoas Schilling2021-01-152-3/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #25091 from ↵Christoph Wurst2021-01-1410-27/+439
|\ \ | | | | | | | | | | | | nextcloud/enhancement/ocp-db-exception-abstraction Add our own DB exception abstraction
| * | Add our own DB exception abstractionChristoph Wurst2021-01-1210-27/+439
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now our API exports the Doctrine/dbal exception. As we've seen with the dbal 3 upgrade, the leakage of 3rdparty types is problematic as a dependency update means lots of work in apps, due to the direct dependency of what Nextcloud ships. This breaks this dependency so that apps only need to depend on our public API. That API can then be vendor (db lib) agnostic and we can work around future deprecations/removals in dbal more easily. Right now the type of exception thrown is transported as "reason". For the more popular types of errors we can extend the new exception class and allow apps to catch specific errors only. Right now they have to catch-check-rethrow. This is not ideal, but better than the dependnecy on dbal. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #25036 from nextcloud/fix/noid/limitied-allowed-items-db-in_2blizzz2021-01-141-0/+30
|\ \ \ | |_|/ |/| | respect DB restrictions on number of arguments in statements and queries
| * | DB: warn on parameter number constraintsArthur Schiwon2021-01-111-0/+30
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | [tx-robot] updated from transifexNextcloud bot2021-01-132-4/+36
| | |
* | | Merge pull request #25089 from nextcloud/enhancement/ocp-db-typesblizzz2021-01-123-0/+115
|\ \ \ | | | | | | | | Add our own db column types via the public API
| * | | Add our own constants for db column typesChristoph Wurst2021-01-123-0/+115
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Merge pull request #25088 from nextcloud/fix/allow_app_updates_againRoeland Jago Douma2021-01-123-13/+19
|\ \ \ \ | |/ / / |/| | | Allow installing/updating of apps again
| * | | Fix option in the client code itself as wellRoeland Jago Douma2021-01-122-12/+18
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | Allow installing/updating of apps againRoeland Jago Douma2021-01-121-1/+1
| | |/ | |/| | | | | | | | | | | | | The Guzzle API changed. We shall now use sink Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / | Add 'allow Symlinks' as an option to config.phpJohannes Leuker2021-01-121-3/+2
|/ / | | | | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* | [tx-robot] updated from transifexNextcloud bot2021-01-122-0/+6
| |
* | Merge pull request #25038 from nextcloud/bugfix/noid/install-mysql8-with-php8blizzz2021-01-111-2/+7
|\ \ | | | | | | Don't try a transaction for the migrator on MySQL
| * | Don't try a transaction for the migrator on MySQLJoas Schilling2021-01-081-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per https://dev.mysql.com/doc/refman/8.0/en/implicit-commit.html CREATE TABLE statements automatically commit always. The only reason this worked in the past was that PHPs PDO connection didn't check the actual state on commit, but only checked their internal state. But in PHP8 this was fixed: https://github.com/php/php-src/blob/PHP-8.0/UPGRADING#L446-L450 So now commit() fails because the internal PDO connection implicitly commited already. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #25039 from ↵Roeland Jago Douma2021-01-111-3/+9
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/libxml-use-internal-errors-deprecated Only use libxml_disable_entity_loader on php older than 8
| * | | Only use libxml_disable_entity_loader on php older than 8Christoph Wurst2021-01-081-3/+9
| |/ / | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #25034 from ↵Morris Jobke2021-01-111-2/+2
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/load-authentication-for-app-upgrades Make sure to do priority app upgrades first
| * | | Make sure to do priority app upgrades firstJulius Härtl2021-01-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise those apps might not be loaded when the others app migrations are running. The previous loading of authentication apps in the upgrade step never worked as it just returns in maintenance mode Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #25073 from nextcloud/psalm/24521/remove-unneeded-castsMorris Jobke2021-01-1114-70/+70
|\ \ \ \ | | | | | | | | | | Remove unneeded casts that were found by Psalm
| * | | | Remove unneeded casts that were found by PsalmMorris Jobke2021-01-1114-70/+70
| | |_|/ | |/| | | | | | | | | | | | | | | | | | 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>
* | | | Merge pull request #25070 from nextcloud/feature/noid/card-ros-definitionsRoeland Jago Douma2021-01-111-0/+62
|\ \ \ \ | | | | | | | | | | Deck Rich-Object-String definitions for deck boards and cards
| * | | | Deck Rich-Object-String definitions for deck boards and cardsJoas Schilling2021-01-111-0/+62
| |/ / / | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / / / Bump scssphp/scssphp from 1.0.3 to 1.4.0Christoph Wurst2021-01-111-8/+5
|/ / / | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | [tx-robot] updated from transifexNextcloud bot2021-01-112-0/+4
| | |
* | | [tx-robot] updated from transifexNextcloud bot2021-01-094-0/+4
| |/ |/|
* | Merge pull request #24948 from nextcloud/dependabot/composer/doctrine/dbal-3.0.0Christoph Wurst2021-01-0851-508/+888
|\ \ | | | | | | Bump doctrine/dbal from 2.12.0 to 3.0.0
| * | Remove "primary" option from schema builder argument $options as it is not ↵Morris Jobke2021-01-081-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | used anymore and triggers an exception See https://github.com/doctrine/dbal/commit/138eb85234a1faeaa2e6a32cd7bcc66bb51c64e8#diff-300f55366adb50a32a40882ebdc95c163b141f64cba5f45f20bda04a907b3eb3L82 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-0850-507/+879
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #22992 from nextcloud/password-urlencodeMorris Jobke2021-01-081-0/+14
|\ \ \ | |/ / |/| | allow authenticating using urlencoded passwords
| * | allow authenticating using urlencoded passwordsRobin Appelman2021-01-071-0/+14
| | | | | | | | | | | | | | | | | | this allows authenticating with passwords that contain non ascii-characters in contexts that otherwise do not allow it (http basic) Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #25015 from nextcloud/fix/no-double-intl-polyfillRoeland Jago Douma2021-01-082-3/+8
|\ \ \ | | | | | | | | Replace patchwork/utf8 with symfony-polyfill-*
| * | | Replace patchwork/utf8 with symfony-polyfill-*Christoph Wurst2021-01-072-3/+8
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Merge pull request #25021 from nextcloud/enhancement/occ-install-exception-traceRoeland Jago Douma2021-01-084-4/+8
|\ \ \ \ | | | | | | | | | | Print an exception trace for setup exceptions
| * | | | Add more previous exceptions to database setup codeMorris Jobke2021-01-073-4/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | | Print an exception trace for setup exceptionsChristoph Wurst2021-01-071-0/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now any setup error will just result in the exception message being printed. In some cases this doesn't give any insights into what went wrong. This adds some dedicated logic to print the exception trace and any previous exceptions to the CLI. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | [tx-robot] updated from transifexNextcloud bot2021-01-082-0/+2
| | | |
* | | | Merge pull request #24892 from nextcloud/fix/use-symfony-dispatcher-correctlyMorris Jobke2021-01-071-14/+22
|\ \ \ \ | | | | | | | | | | Use the Symfony dispatcher correctly
| * | | | Use the Symfony dispatcher correctlyChristoph Wurst2021-01-051-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Event object as first arg (otherwise there is a notice in the logs) * `dispatch` MUST return the event object Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Merge pull request #24989 from nextcloud/scanner-ignore-non-readableMorris Jobke2021-01-071-0/+4
|\ \ \ \ \ | | | | | | | | | | | | ignore files that have no read permissions during scanning
| * | | | | ignore files that have no read permissions during scanningRobin Appelman2021-01-061-0/+4
| |/ / / / | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | Merge pull request #24934 from nextcloud/max_file_uploadsRoeland Jago Douma2021-01-071-5/+0
|\ \ \ \ \ | |_|/ / / |/| | | | Remove useless ini_set calls
| * | | | Remove useless ini_set functionsCarlos Ferreira2021-01-071-5/+0
| | |_|/ | |/| |
* / | | Catch throwable instead of exceptionRoeland Jago Douma2021-01-071-1/+1
|/ / / | | | | | | | | | | | | | | | | | | The error that gets thrown can also be a type error etc. So we should properly catch the Throwable. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #25003 from nextcloud/psalm/noid/phpdoc-fix-return-typeRoeland Jago Douma2021-01-073-3/+3
|\ \ \ | | | | | | | | Fix return types for Archive::getStream
| * | | Fix return types for Archive::getStreamMorris Jobke2021-01-073-3/+3
| | |/ | |/| | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / | Fix warning in PHP 8 about optional parameter before mandatory oneMorris Jobke2021-01-071-1/+1
|/ / | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>