summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix check for redis minimal versionDaniel Kesselberg2021-09-241-6/+6
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Allow casting query functions as wellJoas Schilling2021-09-243-5/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #28683 from nextcloud/backport/26463/stable22blizzz2021-09-232-2/+15
|\ | | | | [stable22] Fix S3 ObjectStore proxy option
| * fix(proxy): use accessorMaxime Besson2021-09-011-2/+2
| | | | | | | | Signed-off-by: Maxime Besson <maxime.besson@worteks.com>
| * fix(proxy): reaching s3 storage behind some http proxyMaxime Besson2021-09-011-4/+4
| | | | | | | | Signed-off-by: Maxime Besson <maxime.besson@worteks.com>
| * fix(proxy): reaching s3 storage behind some http proxySamuel2021-09-012-2/+15
| | | | | | | | Signed-off-by: Maxime Besson <maxime.besson@worteks.com>
* | Support seeking also from the end of file on S3 storagePauli Järvinen2021-09-201-1/+10
| | | | | | | | | | | | | | | | The PR https://github.com/nextcloud/server/pull/20033 added support for `fseek` for the S3 storage backend. However, the seek mode SEEK_END was left out that time. This PR fills this gap. Signed-off-by: Pauli Järvinen <pauli.jarvinen@gmail.com>
* | Fall back to full file for video previewsVincent Petry2021-09-202-9/+29
| | | | | | | | | | | | | | If the first 5 MB are not enough to grab a useful frame for the thumbnail preview, fall back to reading the full file. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Add email addresses to contacts menuDaniel Kesselberg2021-09-171-0/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #28531 from nextcloud/backport/28478/stable22John Molakvoæ2021-09-161-1/+1
|\ \
| * | Fix SQL type errorMátyás Jani2021-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fixing the following SQL error encountered with PostgreSQL: SQLSTATE[42883]: Undefined function: 7 ERROR: No operator matches the given name and argument types. You might need to add explicit type casts. This prevented the Nextcloud apps/files page to show the files and directories. See #27881
* | | Add database ratelimiting backendLukas Reschke2021-09-135-28/+152
| | | | | | | | | | | | | | | | | | | | | In case no distributed memory cache is specified this adds a database backend for ratelimit purposes. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Merge pull request #28780 from nextcloud/backport/28422/stable22John Molakvoæ2021-09-1011-26/+444
|\ \ \
| * | | use specific email getter where necessaryArthur Schiwon2021-09-101-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | enable the user to set a primary (notification) email address (backend)Arthur Schiwon2021-09-103-12/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - specific getters and setters on IUser and implementation - new notify_email field in provisioning API Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | Confirm mails only per POSTArthur Schiwon2021-09-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - this is to avoid automatic confirmation by certain softwares that open links Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | add a job to clean up expired verification tokensArthur Schiwon2021-09-102-4/+108
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | fix parameter type hint in phpdocArthur Schiwon2021-09-101-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | implement verification for additional mailsArthur Schiwon2021-09-104-11/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - mails added by (sub)admins are automatically verified - provisioning_api controller as verification endpoint - IAccountProperty gets a locallyVerified property - IPropertyCollection gets a method to fetch an IAccountProperty by value - an remove equivalent was already present - AccountManager always initiates mail verification on update if necessary - add core success template for arbitrary title and message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | | move verification token logic out of lost password controllerArthur Schiwon2021-09-101-0/+111
| | |/ | |/| | | | | | | | | | | | | | | | - to make it reusable - needed for local email verification Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* / | make it possible to override the default collationArthur Schiwon2021-09-093-9/+13
|/ / | | | | | | | | | | - allows admins to configure it for edge cases like accent sensitivity Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Unregister enc stream wrapper for any exceptionVincent Petry2021-08-261-1/+1
| | | | | | | | | | | | | | This prevents side effects in tests by properly cleaning up even with expected exceptions. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Merge pull request #28583 from nextcloud/backport/28566/stable22Lukas Reschke2021-08-251-1/+1
|\ \ | | | | | | [stable22] use getGetUnjailedRoot to determine if jailed search needs the path filter
| * | use getGetUnjailedRoot to determine if jailed search needs the path filterRobin Appelman2021-08-241-1/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | use case insensitive like when limiting search to jailRobin Appelman2021-08-242-3/+5
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #28256 from nextcloud/enh/21045/stable22-quota-restrictionsPytal2021-08-231-0/+12
|\ \ | |/ |/| [stable22] Add quota restrictions options
| * refs #21045 add app config to disable unlimited quota and to set max quotaChristopher Ng2021-08-201-0/+12
| | | | | | | | | | | | | | | | | | | | avoid unlimited quota as default_quota fallback value if unlimited quota is not allowed avoid getting/setting/displaying unlimited default quota if not allowed implement tests for unlimited quota restrictions Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | Properly log errors in Movie previews generationJohn Molakvoæ (skjnldsv)2021-08-192-2/+8
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #28499 from nextcloud/backport/28485/stable22John Molakvoæ2021-08-191-6/+14
|\ \
| * | Fix #20913: Check image resource before attempting to preserve alphaSimon Spannagel2021-08-181-6/+14
| | | | | | | | | | | | Signed-off-by: Simon Spannagel <simonspa@kth.se>
* | | Merge pull request #28454 from nextcloud/backport/28303/stable22John Molakvoæ2021-08-191-0/+7
|\ \ \ | |_|/ |/| |
| * | Use IURLGenerator function to get value of `\OC::$WEBROOT` globalJonas Meurer2021-08-161-0/+7
| | | | | | | | | | | | Signed-off-by: Jonas Meurer <jonas@freesources.org>
* | | Merge pull request #28494 from nextcloud/backport/28481/stable22Pytal2021-08-181-2/+3
|\ \ \ | |_|/ |/| | [stable22] Hash cache key
| * | Hash cache keyChristopher Ng2021-08-181-2/+3
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | | Emit an error log when the app token login name does not matchChristoph Wurst2021-08-181-1/+6
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Only trap E_ERROR in session handlingJulius Härtl2021-08-171-1/+3
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix Folder->getById() when a single storage is mounted multiple timesRobin Appelman2021-08-091-15/+29
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont apply jail search filter is on the rootRobin Appelman2021-07-291-11/+15
| | | | | | the extra '/' breaks things and the filter wouldn't do anything anyway except making the databases job harder Signed-off-by: Robin Appelman <robin@icewind.nl>
* Admin Audit - Sharing: createShare - report the full pathszaimen2021-07-261-0/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Allow empty Redis configVincent Petry2021-07-231-4/+4
| | | | | | | | When Redis config is empty, use defaults. However when a Redis cluster config is specified, the "seeds" attribute is mandatory. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Properly support RedisClusterJohn Molakvoæ (skjnldsv)2021-07-221-16/+22
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Support redis user password auth and tls encryptionJohn Molakvoæ (skjnldsv)2021-07-221-22/+84
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Sanitize more functions from the encryption appLukas Reschke2021-07-211-1/+57
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Disable HEIC image preview provider for performance concernstobiasKaminsky2021-07-211-2/+1
| | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* Mask password for Redis and RedisCluster on connection failureDaniel Kesselberg2021-07-191-0/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Directly return cloud id from userJulius Härtl2021-07-141-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #27964 from nextcloud/backport/27761/stable22Joas Schilling2021-07-141-1/+1
|\ | | | | [stable22] Also hide group from direct matches
| * Also hide group from direct matchesJoas Schilling2021-07-141-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Correctly skip suppressed errors in PHP 8.0Chih-Hsuan Yen2021-07-141-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | Applies the suggested transformation mentioned in https://www.php.net/manual/en/migration80.incompatible.php, > The @ operator will no longer silence fatal errors (E_ERROR, > E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR, > E_PARSE). Error handlers that expect error_reporting to be 0 when > @ is used, should be adjusted to use a mask check instead The new code still works on PHP 7, as error_reporting() already returns 0 when diagnostics are suppressed. This fixes https://github.com/nextcloud/server/issues/25807 in PHP 8.0. For PHP 7.x, https://github.com/nextcloud/server/pull/22243 suppresses the E_NOTICE message from the second session_start() call with the error suppression operator @, and thus those E_NOTICE messages are still logged in PHP 8.0. See also https://github.com/nextcloud/server/issues/25806 Signed-off-by: Chih-Hsuan Yen <yan12125@gmail.com>
* Check for !== false instead Lukas Reschke2021-07-121-1/+1
| | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>