summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* bump applicable version due to an intermediate releaseArthur Schiwon2021-02-171-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Cache the user backend info for 300sJoas Schilling2021-02-171-1/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix WebP availability checkRoeland Jago Douma2021-02-111-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #25450 from nextcloud/backport/25393/stable21Roeland Jago Douma2021-02-092-1/+141
|\ | | | | [stable21] add repair job for unencoded group share uris
| * show suggestion to clean up possible invalid shares laterArthur Schiwon2021-02-021-0/+6
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * add repair job for unencoded calendarsArthur Schiwon2021-02-022-1/+135
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #25496 from nextcloud/backport/25487/stable21Roeland Jago Douma2021-02-051-0/+8
|\ \ | | | | | | [stable21] Log deprecation notice of GenericEventWrapper just once
| * | Log deprecation notice of GenericEventWrapper just onceChristoph Wurst2021-02-051-0/+8
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix failing testsJames Letendre2021-02-021-1/+1
| | | | | | | | Signed-off-by: James Letendre <james.letendre@gmail.com>
* | Add web identity provider to S3 connection chainJames Letendre2021-02-021-13/+4
| | | | | | | | Signed-off-by: James Letendre <james.letendre@gmail.com>
* | Replace defaultProvider with explicit calls to exclude user home directory ↵James Letendre2021-02-021-1/+15
| | | | | | | | | | | | lookup Signed-off-by: James Letendre <james.letendre@gmail.com>
* | Resolves #24699, Support ES2 and ECS instance providers for S3 bucketsJames Letendre2021-02-021-2/+1
|/ | | | Signed-off-by: James Letendre <james.letendre@gmail.com>
* Avoid template creators being registered multiple timesJulius Härtl2021-02-021-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #25444 from nextcloud/bug/25415/move-generic-errors-to-endChristoph Wurst2021-02-021-13/+13
|\ | | | | Check for generic errors at last.
| * Check for generic errors at last.Daniel Kesselberg2021-02-021-13/+13
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #25302 from mziech/patch-2Christoph Wurst2021-01-291-1/+1
|\ \ | | | | | | Use RFC-compliant URL encoding for cookies
| * | Use RFC-compliant URL encoding for cookiesMarco Ziech2021-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | PHP 7.4.2 changed the way how cookies are decoded, applying RFC-compliant raw URL decoding. This leads to a conflict Nextcloud's own cookie encoding, breaking the remember-me function if the UID contains a space character. Fixes #24438 Signed-off-by: Marco Ziech <marco@ziech.net>
* | | Use proper path for scannerJulius Härtl2021-01-291-2/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Obtain the user language from the passed in user idJulius Härtl2021-01-291-1/+5
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Normalize compared path to avoid renaming to the same directoryJulius Härtl2021-01-291-1/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | The objectid is a stringRoeland Jago Douma2021-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | This allows the query to use the index. Else it has to resort on scanning all the rows. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Move TemplateProvider registration to boot context and make template type ↵Julius Härtl2021-01-282-18/+51
| | | | | | | | | | | | | | | | | | registration lazy Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Only create template directory if it is present in the default skeletonJulius Härtl2021-01-281-1/+4
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Skip template picker if none availableJohn Molakvoæ (skjnldsv)2021-01-282-31/+70
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Add templatedirectory config value to let admins have their custom templates ↵Julius Härtl2021-01-282-14/+71
| | | | | | | | | | | | | | | | | | by default Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add template pickerJohn Molakvoæ (skjnldsv)2021-01-281-1/+1
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | files: Create files from template APIJulius Härtl2021-01-283-0/+243
| |/ |/| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #25335 from nextcloud/fix/app-fetcher-php-compat-comparisonRoeland Jago Douma2021-01-272-12/+17
|\ \ | | | | | | Fix/app fetcher php compat comparison
| * | Fix app fetcher php comparison to allow wider rangesChristoph Wurst2021-01-261-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When app app specifies php 7.4 as upper limit we have to allow the installation on php>7.4.0. The previous version check didn't do that. This adjusts the regexes to discard any irrelevant suffix after the three version numbers so that we can use more fine granular checks than php's version_compare can do out of the box, like for php 7.4 we only compare the major and minor version numbers and ignore the patch level. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | Revert "Fix comparison of PHP versions"Christoph Wurst2021-01-261-2/+2
| |/ | | | | | | This reverts commit bedd9acf7874b836bef224989c2ce7f5e3b0a2fa.
* | Merge pull request #25268 from nextcloud/enh/previews/sgi-tgaChristoph Wurst2021-01-273-1/+69
|\ \ | |/ |/| Add SGI and TGA preview support
| * Add SGI and TGA preview supportJohn Molakvoæ (skjnldsv)2021-01-223-1/+69
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Convert 2FA token type to stringChristoph Wurst2021-01-221-3/+3
|/ | | | | | | | The IConfig service is documented to handle its data as strings, hence this changes the code a bit to ensure we store keys as string and convert them back when reading. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* | 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>
* | 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>
* | | Compare and store the login name via the eventJoas Schilling2021-01-201-1/+1
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Add support for webpRoeland Jago Douma2021-01-193-2/+53
|/ | | | | | | | | 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>
* | 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>
* 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 #25091 from ↵Christoph Wurst2021-01-145-24/+272
|\ | | | | | | | | nextcloud/enhancement/ocp-db-exception-abstraction Add our own DB exception abstraction
| * Add our own DB exception abstractionChristoph Wurst2021-01-125-24/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>