summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [tx-robot] updated from transifexNextcloud bot2021-01-222-0/+8
|
* Merge pull request #25214 from ↵Morris Jobke2021-01-212-3/+37
|\ | | | | | | | | nextcloud/dependabot/composer/phpseclib/phpseclib-2.0.30 Bump phpseclib/phpseclib from 2.0.25 to 2.0.30
| * Also load CA properly in integrity checkRoeland Jago Douma2021-01-201-1/+17
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * phpsec lib can't parse multiple certs in one goRoeland Jago Douma2021-01-201-2/+20
| | | | | | | | | | | | So we have to split it manually and do it ourselves Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #25238 from nextcloud/enh/noid/apps-defacto-in-rootRoeland Jago Douma2021-01-211-9/+2
|\ \ | | | | | | Apps folder is defacto in root folder and not above
| * | Apps folder is defacto in root folder and not aboveMorris Jobke2021-01-201-9/+2
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #25240 from nextcloud/enh/noid/re-use-fetched-dependenciesRoeland Jago Douma2021-01-211-39/+37
|\ \ \ | | | | | | | | Re-use fetched dependencies in lib/base.php
| * | | Re-use fetched dependencies in lib/base.phpMorris Jobke2021-01-201-39/+37
| |/ / | | | | | | | | | | | | | | | | | | | | | Reduces calls to DI container by reusing already fetched dependencies. For status.php it went from 355 to 344. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #25236 from nextcloud/mkdir-explicit-chmodJulius Härtl2021-01-211-1/+4
|\ \ \ | | | | | | | | explicitly set permissions on newly created folders
| * | | explicitly set permissions on newly created foldersRobin Appelman2021-01-201-1/+4
| |/ / | | | | | | | | | | | | | | | this works around any `umask` that might be set and limiting the folder permissions Signed-off-by: Robin Appelman <robin@icewind.nl>
* / / [tx-robot] updated from transifexNextcloud bot2021-01-212-0/+2
|/ /
* | Merge pull request #25212 from nextcloud/enh/preview-markdownMorris Jobke2021-01-201-0/+110
|\ \ | | | | | | Enhance markdown file preview rendering
| * | Fix typo in comment Morris Jobke2021-01-201-1/+1
| | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | Enhance markdown file preview renderingJulius Härtl2021-01-201-0/+110
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Merge pull request #25224 from ↵Morris Jobke2021-01-202-2/+13
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/24600/fix-saving-user-credentials Update handling of user credentials
| * | | Compare and store the login name via the eventJoas Schilling2021-01-202-2/+13
| |/ / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / / Drop authtoken_version_indexRoeland Jago Douma2021-01-202-0/+2
|/ / | | | | | | | | | | | | The index was used when deleting old tokens. On top of that the index is of course not that great since the version is either 1 or 2. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Add support for webpRoeland Jago Douma2021-01-195-2/+55
|/ | | | | | | | | Including handling in OC_Image But also a preview provider Of course only works if your php actually supports webp Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #25153 from ↵Roeland Jago Douma2021-01-192-17/+13
|\ | | | | | | | | nextcloud/bugfix/noid/force-signature-verification-on-occ Force signature verification of apps on occ
| * Cleanup the constructorJoas Schilling2021-01-182-13/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Force run the verification of the signature on occJoas Schilling2021-01-181-4/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | [tx-robot] updated from transifexNextcloud bot2021-01-192-2/+2
| |
* | Don't log keys on checkSignatureJoas Schilling2021-01-181-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Only use alphanumeric chars for mysql passwordJoas Schilling2021-01-181-1/+2
|/ | | | | | / and + can cause problems with other tools that you might want to run on your Nextcloud database. Signed-off-by: Joas Schilling <coding@schilljs.com>
* [tx-robot] updated from transifexNextcloud bot2021-01-182-0/+4
|
* [tx-robot] updated from transifexNextcloud bot2021-01-172-2/+2
|
* 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>