summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Remove default token which is deprecated since Nextcloud 13Joas Schilling2021-12-0110-842/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove files_iedavclientJohn Molakvoæ (skjnldsv)2021-11-301-5/+0
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Merge pull request #29966 from nextcloud/feat/remove-isIEJohn Molakvoæ2021-11-302-17/+0
|\
| * Remove isIE and associated legacy scriptsJohn Molakvoæ (skjnldsv)2021-11-302-17/+0
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #29958 from nextcloud/fix/translit-php8/deps-and-testsMichaIng2021-11-302-5/+0
|\ \ | |/ |/| Remove iconv from dependencies and tests
| * Remove iconv from dependencies and testsMichaIng2021-11-302-5/+0
| | | | | | | | | | | | which is not used anymore since: https://github.com/nextcloud/server/pull/29470 Signed-off-by: MichaIng <micha@dietpi.com>
* | Include previous execption for repair steps that don't existChristoph Wurst2021-11-301-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Let repair step query exceptions bubble upChristoph Wurst2021-11-301-1/+8
|/ | | | | | | | | | | And hide the type error caused by a constructor call with missing arguments. `new $repairStep();` only works for the rare case that no arguments are required. Anything else will throw. Then we previously hid the trace of the more important query exception. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #29917 from nextcloud/fix/29768/l10nPytal2021-11-297-17/+17
|\
| * Fix source of translationsChristopher Ng2021-11-267-17/+17
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Interpolate the log message also for logged exceptionsChristoph Wurst2021-11-291-8/+19
| | | | | | | | | | | | | | | | | | | | | | According to PSR-3 the log message can have placeholders that are replaced from the context object. Our logger implementation did that for all PSR-3 logger methods. The only exception was our custom `logException`. Since PsrLoggerAdapter calls logException when an exception key is present in the context object, log messages were no longer interpolated. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Obey col length of 255 to insert and search in accounts_dataArthur Schiwon2021-11-261-1/+8
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #29906 from nextcloud/fix/strict_comp_for_redisVincent Petry2021-11-251-1/+1
|\ | | | | Use strict comparison to detect usage of redis cluster
| * Use strict comparison to detect usage of redis clusterLouis Chemineau2021-11-251-1/+1
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Merge pull request #29894 from nextcloud/fix/inactive-profile-parameterblizzz2021-11-251-0/+1
|\ \ | |/ |/| Fix inactive profile parameters being displayed in the Profile visibility section
| * Fix inactive profile parameters being returnedChristopher Ng2021-11-251-0/+1
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Check for invalid characters before trimmingJoas Schilling2021-11-251-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #29432 from nextcloud/fix/support-php-8.1Vincent Petry2021-11-2329-70/+81
|\ | | | | Support PHP 8.1 - First batch
| * 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 warning about passing null to substr_countCôme Chilliet2021-11-231-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix warning about passing null to rtrimCôme Chilliet2021-11-231-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix type errorsCôme Chilliet2021-11-232-5/+6
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix DateTime constructor calls with nullCôme Chilliet2021-11-231-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix Guzzle function callsCôme Chilliet2021-11-232-5/+5
| | | | | | | | | | | | | | Since 1.7.0 and 2.0 these functions are turned into static methods. See https://github.com/guzzle/psr7#upgrading-from-function-api Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix Iterator return typesCôme Chilliet2021-11-233-10/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-2318-45/+61
| | | | | | | | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Type hint in IpAddress Vincent Petry2021-11-221-3/+2
| | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* | Improve normalizer detecting IPv4 inside of IPv6Vincent Petry2021-11-221-2/+42
| | | | | | | | | | | | | | The subnet for an IPv4 address inside of IPv6 is now returned in its IPv4 form. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Fix getting subnet of ipv4 mapped ipv6 addressesVincent Petry2021-11-221-0/+2
|/ | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #29708 from nextcloud/fix/no-app-update-no-verboseMichaIng2021-11-221-2/+2
|\ | | | | Do not print verbose info about app updates if there are none
| * Do not print verbose info about app updates if there are noneChristoph Wurst2021-11-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | This is cosmetical but if you have a large number of apps installed then you'll see a wall of text during the server and app upgrade when it tries to update each app via the app store. In may cases nothing will be updated. For those boring cases we can hide the verbose info, but show when occ is run with -v. Any actual update will still print a few lines. Those are the important ones for the admin. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #29622 from nextcloud/feat/objectstore_multibucket-shiftVincent Petry2021-11-192-3/+16
|\ \ | | | | | | Implement multibucket shift for ObjectStore
| * | Implement multibucket shift for ObjectStoreJohn Molakvoæ2021-11-112-3/+16
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | Merge pull request #29632 from nextcloud/fix/26118/imagecreatetruecolor-errorVincent Petry2021-11-191-0/+4
|\ \ \ | | | | | | | | fix imagecreatetruecolor() error
| * | | fix imagecreatetruecolor() errorszaimen2021-11-101-0/+4
| |/ / | | | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* | | Merge pull request #29758 from nextcloud/disk_free_space-fix-php8Vincent Petry2021-11-191-1/+1
|\ \ \ | | | | | | | | Check for `disk_free_space`
| * | | Check for `disk_free_space`acsfer2021-11-181-1/+1
| | |/ | |/| | | | | | | Check for `disk_free_space` before calling it. Fix https://github.com/nextcloud/server/issues/29748
* | | Merge pull request #29605 from nextcloud/bugfix/29603/fix-scanner-nfd-existenzVincent Petry2021-11-194-4/+80
|\ \ \ | |/ / |/| | Normalize file name before existence check in scanner
| * | Normalize directory entries in Encoding wrapperVincent Petry2021-11-173-4/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Directory entry file names are now normalized in getMetaData(), getDirectoryContents() and opendir(). This makes the scanner work properly as it assumes pre-normalized names. In case the names were not normalized, the scanner will now skip the entries and display a warning when applicable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | Move storage encoding compatibility warning logicVincent Petry2021-11-172-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The encoding check for file names is now happening the Scanner, and an event will be emitted only if the storage doesn't contain the encoding compatibility wrapper. The event is listened to by the occ scan command to be able to display a warning in case of file name mismatches when they have NFD encoding. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | Normalize file name before existence check in scannerVincent Petry2021-11-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scanner would not find a NFD-encoded file name in an existing file list that is normalized. This normalizes the file name before scanning. Fixes issues where scanning repeatedly would make NFD files flicker in and out of existence in the file cache. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | Merge pull request #29747 from ↵Joas Schilling2021-11-171-1/+1
|\ \ \ | |/ / |/| | | | | | | | nextcloud/allow-to-serve-static-webassembly-and-tensorflow-lite-files Allow to serve static WebAssembly and TensorFlow Lite files
| * | Allow to serve static WebAssembly and TensorFlow Lite filesDaniel Calviño Sánchez2021-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Talk 13 (and thus Nextcloud 23) WebAssembly (.wasm) and TensorFlow Lite (.tflite) files need to be loaded from the web server to provide certain features (like the background blur in the WebUI). Those files can be treated in a similar way to other static resources, and there should not be any problem caching or compressing them. However, as compressed TensorFlow Lite files are only ~12% smaller, the compression directive depends on the MIME type and there is no standard MIME type for TensorFlow Lite files it is not worth to compress them. Moreover, no directives to compress WebAssembly files were added either, as it seems that they would override any other compression directives set in the default server configuration; for reference it could be done with something like: <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE application/wasm </IfModule> </IfModule> Depending on the setup "application/wasm" may not be associated with ".wasm" files, so the directive was added just in case, as otherwise browsers log a warning. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #29695 from YoitoFes/fix_missing_setlocaleVincent Petry2021-11-161-6/+22
|\ \ \ | | | | | | | | Fix missing setlocale with php 8
| * | | OC_Util::isNonUTF8Locale: fix lint errorNaoto Kobayashi2021-11-161-5/+5
| | | | | | | | | | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
| * | | OC_Util::isSetLocaleWorking: fix typoNaoto Kobayashi2021-11-161-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
| * | | OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi2021-11-161-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using escapeshellcmd to get current locale causes error if the function is disabled. Add fallbacks to prevent the error. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
| * | | Check whether setlocale works only after setlocaleNaoto Kobayashi2021-11-141-4/+5
| | | | | | | | | | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
| * | | Fix missing setlocale with php 8Naoto Kobayashi2021-11-141-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale. This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8"). Fix it by using escapeshellcmd instead of basename. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | | Merge pull request #29683 from nextcloud/bugfix/29676/fix-theming-dependenciesCarl Schwan2021-11-161-5/+4
|\ \ \ | | | | | | | | Fix core depending on theming app